public static string[] GetToLoweredStringArray(GridSearchOperation op) { return op.ToString() .Split(new char[] { ',' }, StringSplitOptions.RemoveEmptyEntries) .Select(s => s.Trim().ToLower()) .ToArray(); }
public static string[] GetToLoweredStringArray(GridSearchOperation op) { return(op.ToString() .Split(new char[] { ',' }, StringSplitOptions.RemoveEmptyEntries) .Select(s => s.Trim().ToLower()) .ToArray()); }
private static GridSearchOperationNodeTypeAttribute ExtractOperationComparisonType(GridSearchOperation op) { //get the attribute and associated NodeType var memberInfo = typeof(GridSearchOperation).GetMember(op.ToString()); object[] attrInfo = memberInfo[0].GetCustomAttributes(typeof(GridSearchOperationNodeTypeAttribute), false); var theAttribute = attrInfo[0] as GridSearchOperationNodeTypeAttribute; return(theAttribute); }