Al Programming
Free source code programming in C#, VB.Net, Java, SQL
Search This Blog
Thursday, November 6, 2014
Lambda Expressions in a Query C#
C#
>
Operators
>
Lambda
>
Query
We use lambda expressions in method calls not directly in query syntax.
Simple Example
int
[] wages = { 1000, 1200, 1500, 1800, 2000, 2500 };
int
highWagesCount = wages.Where(n
=>
n >= 2000).Count();
Newer Post
Older Post
Home