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

            foreach (FieldInfo field in fileDescriptorField.GetType().GetFields())
            {
                fileDescriptorFieldList.Add((QueryAdminFileDescriptorField)field.GetValue((object)fileDescriptorField));
            }
            return(fileDescriptorFieldList);
        }