public Criteria() { criterias = new List <Criteria>(); mode = CriteriaMode.And; //type = CriteriaType.Equals; type = CriteriaType.None; }
void Add(CriteriaType type, CriteriaMode mode, string name, object value) { Criteria c = new Criteria(type, name, value); c.Mode = mode; Criterias.Add(c); }