public static QueryConditionField FromValue(string value)
 {
     foreach (QueryConditionField queryConditionField in QueryConditionField.Values())
     {
         if (queryConditionField.Value().Equals(value))
         {
             return(queryConditionField);
         }
     }
     throw new ArgumentException(value.ToString());
 }
        public static List <QueryConditionField> Values()
        {
            QueryConditionField        queryConditionField     = new QueryConditionField();
            List <QueryConditionField> queryConditionFieldList = new List <QueryConditionField>();

            foreach (FieldInfo field in queryConditionField.GetType().GetFields())
            {
                queryConditionFieldList.Add((QueryConditionField)field.GetValue((object)queryConditionField));
            }
            return(queryConditionFieldList);
        }