I have a line of code using where:
codebase.Methods.Where(x => x.Body.Scopes.Count > 5);
How can I insert more than one condition? So I can say x => predicate && y => predicate
?
Thanks
c++
I have a line of code using where:
codebase.Methods.Where(x => x.Body.Scopes.Count > 5);
How can I insert more than one condition? So I can say x => predicate && y => predicate
?
Thanks
Best Answer
You can roll your separate conditions into a single predicate if you like:
Or you can use a separate
Where
call for each condition: