Esempio n. 1
0
 public static QueryResourcePoolField FromValue(string value)
 {
     foreach (QueryResourcePoolField resourcePoolField in QueryResourcePoolField.Values())
     {
         if (resourcePoolField.Value().Equals(value))
         {
             return(resourcePoolField);
         }
     }
     throw new ArgumentException(value.ToString());
 }
Esempio n. 2
0
        public static List <QueryResourcePoolField> Values()
        {
            QueryResourcePoolField        resourcePoolField     = new QueryResourcePoolField();
            List <QueryResourcePoolField> resourcePoolFieldList = new List <QueryResourcePoolField>();

            foreach (FieldInfo field in resourcePoolField.GetType().GetFields())
            {
                resourcePoolFieldList.Add((QueryResourcePoolField)field.GetValue((object)resourcePoolField));
            }
            return(resourcePoolFieldList);
        }