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

            foreach (FieldInfo field in queryEventField.GetType().GetFields())
            {
                queryEventFieldList.Add((QueryEventField)field.GetValue((object)queryEventField));
            }
            return(queryEventFieldList);
        }