Skip to content

[C# 14-Fundamentals and reference]: New Feature - null conditional assignment #45610

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
BillWagner opened this issue Apr 2, 2025 · 0 comments · Fixed by #45637
Closed

[C# 14-Fundamentals and reference]: New Feature - null conditional assignment #45610

BillWagner opened this issue Apr 2, 2025 · 0 comments · Fixed by #45637
Assignees
Labels
🏁 Release: .NET 10 Work items for the .NET 10 release dotnet-csharp/svc 📌 seQUESTered Identifies that an issue has been imported into Quest. resolved-by-customer whats-new/subsvc

Comments

@BillWagner
Copy link
Member

BillWagner commented Apr 2, 2025

Visual Studio release

17.14.p3

Link to speclet

Link to Pull request

New behavior

Once this feature is merged, a?.b and a?[b] expressions can appear as the LHS for an assignment.

If the LHS is null, the RHS expression isn't evaluated.

Language reference tasks

Check and make sure that assignment discussions include this, and the key point that the RHS isn't evaluated.

Everyday C# tasks

Doubtful.


Associated WorkItem - 417142

@BillWagner BillWagner self-assigned this Apr 2, 2025
@dotnet-policy-service dotnet-policy-service bot added the ⌚ Not Triaged Not triaged label Apr 2, 2025
@dotnetrepoman dotnetrepoman bot added the 🗺️ mapQUEST Only used as a way to mark an issue as updated for quest. RepoMan should instantly remove it. label Apr 2, 2025
@dotnet-policy-service dotnet-policy-service bot removed the 🗺️ mapQUEST Only used as a way to mark an issue as updated for quest. RepoMan should instantly remove it. label Apr 2, 2025
@BillWagner BillWagner added 🗺️ reQUEST Triggers an issue to be imported into Quest. and removed ⌚ Not Triaged Not triaged labels Apr 2, 2025
@dotnetrepoman dotnetrepoman bot added the 🗺️ mapQUEST Only used as a way to mark an issue as updated for quest. RepoMan should instantly remove it. label Apr 2, 2025
@dotnet-policy-service dotnet-policy-service bot removed the 🗺️ mapQUEST Only used as a way to mark an issue as updated for quest. RepoMan should instantly remove it. label Apr 2, 2025
@sequestor sequestor bot added 📌 seQUESTered Identifies that an issue has been imported into Quest. and removed 🗺️ reQUEST Triggers an issue to be imported into Quest. labels Apr 3, 2025
@dotnetrepoman dotnetrepoman bot added the 🗺️ mapQUEST Only used as a way to mark an issue as updated for quest. RepoMan should instantly remove it. label Apr 3, 2025
@BillWagner BillWagner moved this from 🔖 Ready to 🏗 In progress in dotnet/docs April 2025 sprint project Apr 3, 2025
@dotnet-policy-service dotnet-policy-service bot removed the 🗺️ mapQUEST Only used as a way to mark an issue as updated for quest. RepoMan should instantly remove it. label Apr 3, 2025
BillWagner added a commit to BillWagner/docs that referenced this issue Apr 4, 2025
Fixes dotnet#45610

Add language reference material for the null conditional assignment.
@BillWagner BillWagner moved this from 🏗 In progress to 👀 In review in dotnet/docs April 2025 sprint project Apr 7, 2025
@dotnetrepoman dotnetrepoman bot added the 🗺️ mapQUEST Only used as a way to mark an issue as updated for quest. RepoMan should instantly remove it. label Apr 7, 2025
@dotnet-policy-service dotnet-policy-service bot removed the 🗺️ mapQUEST Only used as a way to mark an issue as updated for quest. RepoMan should instantly remove it. label Apr 7, 2025
BillWagner added a commit to BillWagner/docs that referenced this issue Apr 8, 2025
Fixes dotnet#45610

Add language reference material for the null conditional assignment.
BillWagner added a commit to BillWagner/docs that referenced this issue Apr 9, 2025
Fixes dotnet#45610

Add language reference material for the null conditional assignment.
@github-project-automation github-project-automation bot moved this from 👀 In review to ✅ Done in dotnet/docs April 2025 sprint project Apr 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🏁 Release: .NET 10 Work items for the .NET 10 release dotnet-csharp/svc 📌 seQUESTered Identifies that an issue has been imported into Quest. resolved-by-customer whats-new/subsvc
Projects
Development

Successfully merging a pull request may close this issue.

1 participant