Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

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();
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #linq #list #select
ADD COMMENT
Topic
Name
3+9 =