The text of this article is not in this database — only its details are. Read it on the old site: Understanding Lambda Expressions
6 Comments
Join the conversation! Your thoughts help the community grow.
Sign in to leave a comment.
The text of this article is not in this database — only its details are. Read it on the old site: Understanding Lambda Expressions
Join the conversation! Your thoughts help the community grow.
Sign in to leave a comment.
Muhammad Asif ShahzadPosted Mar 1, 2018, 10:52 PM
Nice article very helpfull
Gaurav Kumar AroraPosted Nov 16, 2014, 3:10 AM
Ajay Yadav - great explanation. Keep writing good stuff :)
Mahsa HassankashiPosted Nov 15, 2014, 5:25 AM
Thank you
Joginder BangerPosted Nov 15, 2014, 4:12 AM
List<int> lst = new List<int>(); lst.AddRange(new int[] {21,22,18,10,35,42,23,24,25}); List<int> even = lst.FindAll(i => (i % 2)== 0); Console.WriteLine("\nEven Number Listing\n"); foreach(int evNumber in even) { Console.WriteLine("{0}\t", evNumber); } sir how can get even value with any loop like lst.findAll(i=>(i%2)==0).select(i=>i)