I was walking on my trail today and came across this item called, Lambda expression.
Speaking of which, "what are these?" one may ask.
It is basically simplification of LINQ query statements.
For example, the where-clause in LINQ.
From s In Someone _
Where s.Age > 0 _
Select s
can be simplified to a 1-liner.
Someone.Where(Function(s) s.Age > 0)
A point to note however is that my 1-liner is in VB.
Interesting, don't you think?
For more on this, visit Wiki-LINQ here
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment