Outer join in LINQ: retarget net10.0, add LeftJoin and RightJoin examples - #2226
Open
vladimir-pecanac-main wants to merge 1 commit into
Open
vladimir-pecanac-main wants to merge 1 commit into
vladimir-pecanac-main wants to merge 1 commit into
Conversation
…ples - Retarget both projects from net8.0 to net10.0. - Bump test packages: Microsoft.NET.Test.Sdk 18.10.1, xunit 2.9.3, xunit.runner.visualstudio 4.0.0, coverlet.collector 10.0.1. - Add PerformLeftJoinWithLeftJoinMethod and PerformRightJoinWithRightJoinMethod using the .NET 10 Enumerable.LeftJoin and Enumerable.RightJoin operators. - Add two tests for the new methods (8 tests become 10). - SongWithAuthorComparer: Equals returns the expression directly, and GetHashCode combines Title and AuthorName with HashCode.Combine. - Program.cs prints the two new joins.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Sample update for "How to Create an Outer Join in LINQ" (code-maze.com/csharp-outer-join-linq/). This PR touches only csharp-linq/HowToCreateAnOuterJoinInLINQLeftAndRight.
Changes:
Package versions were re-queried on NuGet on 2026-09-23. Microsoft.NET.Test.Sdk is 18.10.1 today, one patch above the 18.10.0 the batch plan named, so 18.10.1 is what this PR uses. The other three match the plan.
Verified locally on SDK 10.0.302, runtime Microsoft.NETCore.App 10.0.10: dotnet build -c Release with 0 warnings and 0 errors, dotnet test with 10 of 10 passing, and dotnet list package --vulnerable --include-transitive clean on both projects. The console output of the existing sections is unchanged.