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

            foreach (FieldInfo field in queryOrgField.GetType().GetFields())
            {
                queryOrgFieldList.Add((QueryOrgField)field.GetValue((object)queryOrgField));
            }
            return(queryOrgFieldList);
        }