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

            foreach (FieldInfo field in queryNetworkField.GetType().GetFields())
            {
                queryNetworkFieldList.Add((QueryNetworkField)field.GetValue((object)queryNetworkField));
            }
            return(queryNetworkFieldList);
        }