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); }
public List <string> Filter(IndexCode ic) { ic.toCode(); return(null); }