How to Join the objects in a LINQ select in this sample (C# variants accepted as well):
Class Room
Public Area As Integer
End Class
Class RoomPair
One As Room
Two As Room
End Class
Dim pairs as List(Of RoomPair) = mySource.GetRoomPairs()
' Select rooms with Area > 100 from my pairs '
Dim roomsAreaLargerThat100 = From p In pairs Select p.One, p.Two???
' roomsAreaLargerThat100 should be a IEnumerable or a List(Of Rooms) '
Flatten the list, and then do a normal
wherecondition: