Skip to content

Conversation

@valentincpopa
Copy link
Contributor

Summary

Added the null conditional operator and the null-coalescing operator similarly to what is presented in the query syntax in order to prevent the snippet from throwing a null reference exception when a student is assigned to a department that does not exist.

Fixes #46938

@valentincpopa valentincpopa requested review from a team and BillWagner as code owners June 24, 2025 22:47
@dotnetrepoman dotnetrepoman bot added this to the June 2025 milestone Jun 24, 2025
@dotnet-policy-service dotnet-policy-service bot added dotnet-csharp/svc csharp-linq/subsvc community-contribution Indicates PR is created by someone from the .NET community. labels Jun 24, 2025
Copy link
Member

@BillWagner BillWagner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @valentincpopa

This LGTM. I'll :shipit: as soon as the build finishes.

@BillWagner BillWagner enabled auto-merge (squash) June 25, 2025 12:55
@BillWagner BillWagner merged commit 6691b72 into dotnet:main Jun 25, 2025
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

community-contribution Indicates PR is created by someone from the .NET community. csharp-linq/subsvc dotnet-csharp/svc

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Left outer join method syntax throws a null reference exception - join operators documentation

2 participants