Answers for "c# linq list select"

C#
1

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();
Posted by: Guest on February-01-2021
0

C# linq mselect

var users = new List<Users>()
var names = users.Select(xx=> xx.Name);
Posted by: Guest on March-24-2020

C# Answers by Framework

Browse Popular Code Answers by Language