List<MyType> results = GetList(); MyType item = results.Find(item => item.name == "test");
foreach (MyType item in results) { if (string.Compare(item.name, "test", true) == 0) { //Do Something. } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)