c# - Is this lambda expression possible? -
Thanks for the help.
Tried luck without this,
I know
from the list where f.bar == someVar select f can be written as
list. Where (F = & gt; F. Bar == someVar); There may be a similar expression
f from foo to f.bar at where b.something == someVar select f; ?
EDIT: Sorry, I have a list of items forgot f.bar in another example.
Definitely. Question syntax is only a syntax Chinese will be translated by the compiler into its built-in lambda syntax, so each query has a lambda based presentation similar to the expression.
This is probably what you want (it is not strictly equal to it, but when you just work, match the query in a bar every foo Eats):
var result = foo.Where (f => f.bar any (b => gt; b) == someVar); is strictly equal edition:
var result = foo.SelectMany (f => f.bar, (f, b) = & Gt; new {F = F, B = B}). Where (x => xbsomething == someVar). Select (x = & gt; xf);
Comments
Post a Comment