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

            foreach (FieldInfo field in queryAdminVmField.GetType().GetFields())
            {
                queryAdminVmFieldList.Add((QueryAdminVmField)field.GetValue((object)queryAdminVmField));
            }
            return(queryAdminVmFieldList);
        }