Linq Queries converting to lambda expressions ?

Posted by Freshblood on Stack Overflow See other posts from Stack Overflow or by Freshblood
Published on 2010-06-08T14:35:01Z Indexed on 2010/06/08 14:42 UTC
Read the original article Hit count: 253

Filed under:
|
|

Hello

from item in range where item % 2 ==0 select i ;

is converting to lamda expressions as below

range.where(item % 2 ==0).select(x=>x).

I feel that first way of linq is translating next one and if it is ,so is there any optimization like this range.where(item & 2 == 0) instead of other one ?

© Stack Overflow or respective owner

Related posts about c#

Related posts about .NET