I have list new List<Expression<Func<Test, bool>>>
and I'd want to add item to with all operations in .Add()
scope
How can I achieve that?
var a = new List<Func<Test, bool>>();
var b = new List<Expression<Func<Test, bool>>>();
a.Add
(
new Func<Test, bool>(x => x.test == false) // works
);
b.Add
(
new Expression<Func<Test, bool>>(x => x.test == false) // fails
);