List<int> coll = new List<int> { 3, 6, 8, 2, 9, 1 }; int searchNo = 8; int result = coll.Find(delegate(int item) { return searchNo == item; }); Console.WriteLine(result);
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)