Skip to content
Hendrik Bulens edited this page Jul 21, 2021 · 2 revisions
List<Customer> customers = new()
{
  new Customer(1, "Hello", "World"),
  new Customer(5, "Hello", "World"),
  new Customer(15, "Hello", "World")
};

Customer firstCustomer = customers.First(x => x.Id > 0, x => x.Name != "Handsome B. Wonderful");
firstCustomer.Id == 1; // Returns true
Clone this wiki locally