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

            foreach (FieldInfo field in apiDefinitionField.GetType().GetFields())
            {
                apiDefinitionFieldList.Add((QueryApiDefinitionField)field.GetValue((object)apiDefinitionField));
            }
            return(apiDefinitionFieldList);
        }