Example #1
0
 public static QueryOrgNetworkField FromValue(string value)
 {
     foreach (QueryOrgNetworkField queryOrgNetworkField in QueryOrgNetworkField.Values())
     {
         if (queryOrgNetworkField.Value().Equals(value))
         {
             return(queryOrgNetworkField);
         }
     }
     throw new ArgumentException(value.ToString());
 }
Example #2
0
        public static List <QueryOrgNetworkField> Values()
        {
            QueryOrgNetworkField        queryOrgNetworkField     = new QueryOrgNetworkField();
            List <QueryOrgNetworkField> queryOrgNetworkFieldList = new List <QueryOrgNetworkField>();

            foreach (FieldInfo field in queryOrgNetworkField.GetType().GetFields())
            {
                queryOrgNetworkFieldList.Add((QueryOrgNetworkField)field.GetValue((object)queryOrgNetworkField));
            }
            return(queryOrgNetworkFieldList);
        }