Horje
c# linq distinct group by nested list Code Example
c# linq distinct group by nested list
var result = hotels.SelectMany(hotel => hotel.RoomType.Select(room => new { Id = room.RoomId, Hotel = hotel }))
                   .GroupBy(item => item.Id)
                   .Select(group => group.FirstOrDefault());




Csharp

Related
audioSource unity Code Example audioSource unity Code Example
get percentage c# Code Example get percentage c# Code Example
Unity Pause Game c# Code Example Unity Pause Game c# Code Example
singleton pattern c# Code Example singleton pattern c# Code Example
c# generate guid from hash Code Example c# generate guid from hash Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
8