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

            foreach (FieldInfo field in queryTaskField.GetType().GetFields())
            {
                queryTaskFieldList.Add((QueryTaskField)field.GetValue((object)queryTaskField));
            }
            return(queryTaskFieldList);
        }