I would like to do a group by on two properties who at 95% of the time will be the same, but sometimes it may not by
class Game { string AwayTeamPoolId; // 122 string HomeTeamPoolId; // 144 } I would like to group all games from the same pool from a list of games. As I mentioned above most of the time this value will be the same for both away/home teams. However there might be a cross pool play game where the values are different. With Linq how can I group say the game by having the awayteampoolid with the group 122, and have hometeampoolid grouped with 144? It's easy if they are the same but different Im not sure.
122 Game 1 (122/122) Game 2 (122/144) 144 Game 2 (122/144) Game 3 (144/144)