public void AddCondition(Expression condition) { var cc = condition as ConstantExpression; if (cc == null || cc.Type != typeof(bool) || !(bool)cc.Value) Conditions.Add(condition); }