Beispiel #1
0
 public static QueryVAppField FromValue(string value)
 {
     foreach (QueryVAppField queryVappField in QueryVAppField.Values())
     {
         if (queryVappField.Value().Equals(value))
         {
             return(queryVappField);
         }
     }
     throw new ArgumentException(value.ToString());
 }
Beispiel #2
0
        public static List <QueryVAppField> Values()
        {
            QueryVAppField        queryVappField     = new QueryVAppField();
            List <QueryVAppField> queryVappFieldList = new List <QueryVAppField>();

            foreach (FieldInfo field in queryVappField.GetType().GetFields())
            {
                queryVappFieldList.Add((QueryVAppField)field.GetValue((object)queryVappField));
            }
            return(queryVappFieldList);
        }