linq c# select code example
Example 1: linq query select where c#
var queryLondonCustomers = from cust in customers
where cust.City == "London"
select cust;
Example 2: C# linq mselect
var users = new List<Users>()
var names = users.Select(xx=> xx.Name);
Example 3: c# linq list select
List<Model> newList = list.Where(m => m.application == "applicationname")
.Select(m => new Model {
application = m.application,
users = m.users.Where(u => u.surname == "surname").ToList()
}).ToList();