c# linq to list code example
Example 1: linq query select where c#
var queryLondonCustomers = from cust in customers
where cust.City == "London"
select cust;
Example 2: from where in list linq
var filteredOrders = from order in orders.Order
where allowedStatus.Contains(order.StatusCode)
select order;