Ich bin sehr erfahren mit Expressions
in .NET, deshalb frage ich euch lieber. Wie soll ich - siehe Kommentar unten:IQueryable <T>. Wo() passender Ausdruck wo?
using P = Myclass;
..
System.Linq.Expressions.Expression<Func<P, bool>> myExpression = null;
..
myExpression1 = x => foo1 == true && foo2 == false;
myExpression2 = x => ... ;
..
BinaryExpression resultExpression = System.Linq.Expressions.Expression.OrElse(myExpression1, myExpression2);
..
IQueryable<P> l = l.Where(?resultExpression?); // how to transform BinaryExpression to the suitable type?
Danke
dies richtig zu verstehen - Sie wollen eine beliebig große Liste von Ausdrücken S nehmen und sie zusammen komponieren so das Ergebnis etwas wie ist: 'resultExpression = x => S [0] (x) || S [1] (x) || S [2] (x) ... || S [n] (x) '. Ist das richtig? –