Example #1
0
        public static string GetLiteral(this System.Enum e)
        {
            var attr = e.GetAttributeOnEnum <EnumLiteralAttribute>();

            if (attr != null)
            {
                return(attr.Literal);
            }
            else
            {
                return(null);
            }
        }