Exemple #1
0
        public static String toCode(this IndexCode value)
        {
            string description = value.ToString();
            var    fieldInfo   = value.GetType().GetField(description);
            var    attributes  =
                (DescriptionAttribute[])fieldInfo.GetCustomAttributes(typeof(DescriptionAttribute), false);

            if (attributes != null && attributes.Length > 0)
            {
                description = attributes[0].Description;
            }
            return(description);
        }
Exemple #2
0
 public List <string> Filter(IndexCode ic)
 {
     ic.toCode();
     return(null);
 }