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

            foreach (FieldInfo field in adminCatalogField.GetType().GetFields())
            {
                adminCatalogFieldList.Add((QueryAdminCatalogField)field.GetValue((object)adminCatalogField));
            }
            return(adminCatalogFieldList);
        }