public static void Main()
new Product { Id = 1, Name = "Tomato Soup", Category = "Groceries", Price = 1 },
new Product { Id = 2, Name = "Yo-yo", Category = "Toys", Price = 3.75M },
new Product { Id = 3, Name = "Hammer", Category = "Hardware", Price = 16.99M }
}.FirstOrDefault(p=>p.Name == "Hammer");
public int Id { get;set; }
public string Name { get;set; }
public string Category { get;set; }
public decimal Price { get;set; }