Using Lambda expression in FindAll()
Using Lambda expression in FindAll()
I am going to show you here how we could use Lambda expression
The Code
I am going to show you here how we could use Lambda expression
The Code
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace ConsoleApplication1 { class Program { static void Main(string[] args) { List<int> lst = new List<int>(); lst.Add(15); lst.Add(200); lst.Add(67); lst.Add(1000); lst.Add(100); lst.Add(600); lst.Add(0); ListOutputlstgrthund = lst.FindAll(a => a > 100 ? true : false); foreach (var r in lstgrthund) { Console.WriteLine(r); } Console.ReadKey(true); } } }
Using Lambda expression in FindAll()
Reviewed by Bhaumik Patel
on
11:45 PM
Rating: