How to read this lambda expression
Can someone read me the following line lambda.
n => n % 2 == 1
Also if I have to write the same piece of code without lambda how would I
write it. It might make me understand.
Another piece of code is below
List<int> numbers = new List<int>{11,37,52};
List<int> oddNumbers = numbers.where(n => n % 2 == 1).ToList();
No comments:
Post a Comment