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

            foreach (FieldInfo field in queryApiFilterField.GetType().GetFields())
            {
                queryApiFilterFieldList.Add((QueryApiFilterField)field.GetValue((object)queryApiFilterField));
            }
            return(queryApiFilterFieldList);
        }