LINQ C# Book

public void Linq62()
{
List products = GetProductList();

Product product789 = products.FirstOrDefault(p => p.ProductID == 789);

Console.WriteLine("Product 789 exists: {0}", product789 != null);
}
Result

Product 789 exists: False