SyntaxFix
Write A Post
Hire A Developer
Questions
LINQ defines an extension method that is perfect for solving this exact problem:
using System.Linq; ... bool has = list.Any(cus => cus.FirstName == "John");
make sure you reference System.Core.dll, that's where LINQ lives.