LINQ Style preference
Posted
by
Erin
on Programmers
See other posts from Programmers
or by Erin
Published on 2011-06-10T15:27:10Z
Indexed on
2012/09/04
3:48 UTC
Read the original article
Hit count: 332
I have come to use LINQ in my every day programming a lot. In fact, I rarely, if ever, use an explicit loop. I have, however, found that I don't use the SQL like syntax anymore. I just use the extension functions. So rather then saying:
from x in y select datatransform where filter
I use:
x.Where(c => filter).Select(c => datatransform)
Which style of LINQ do you prefer and what are others on your team are comfortable with?
© Programmers or respective owner