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

            foreach (FieldInfo field in queryAdminEventField.GetType().GetFields())
            {
                queryAdminEventFieldList.Add((QueryAdminEventField)field.GetValue((object)queryAdminEventField));
            }
            return(queryAdminEventFieldList);
        }