.NET 11 Preview 5 stuff#54352
Merged
Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
Updates the C# 15 and .NET 11 “what’s new” documentation and snippets to align with .NET 11 Preview 5, including union runtime support details, updated union pattern-matching guidance, and expanded libraries feature coverage with new examples.
Changes:
- Updates union documentation to reflect Preview 5 runtime availability of
UnionAttribute/IUnionand refines union pattern-matching behavior (includingnotpattern behavior). - Enables and documents union member provider examples in the unions snippet set.
- Expands .NET 11 “what’s new” libraries content and snippets (for example, LINQ join improvements,
SerializeAsyncEnumerableenhancements,X25519DiffieHellman,EqualityComparer<T>.Create, and genericRandomAPIs).
Reviewed changes
Copilot reviewed 15 out of 15 changed files in this pull request and generated 4 comments.
Show a summary per file
| File | Description |
|---|---|
| docs/csharp/whats-new/csharp-15.md | Updates C# 15 union feature notes for .NET 11 Preview 5. |
| docs/csharp/language-reference/operators/patterns.md | Updates union-pattern matching description and exceptions, and fixes anchor link. |
| docs/csharp/language-reference/compiler-messages/union-declaration-errors.md | Updates union pattern-matching link anchor. |
| docs/csharp/language-reference/builtin-types/union.md | Revises union docs for Preview 5, expands pattern matching explanation, and updates union implementation section. |
| docs/csharp/language-reference/builtin-types/snippets/unions/RuntimePolyfill.cs | Removes runtime polyfill snippet (now described as included in runtime). |
| docs/csharp/language-reference/builtin-types/snippets/unions/Program.cs | Runs the member-provider scenario in the unions snippets entry point. |
| docs/csharp/language-reference/builtin-types/snippets/unions/MemberProvider.cs | Enables the member-provider sample code and scenario. |
| docs/csharp/language-reference/builtin-types/snippets/unions/BodyMembers.cs | Replaces the body-members sample with a Length union example. |
| docs/core/whats-new/dotnet-11/snippets/csharp/Runtime.cs | Wraps runtime snippet into a callable example method. |
| docs/core/whats-new/dotnet-11/snippets/csharp/Program.cs | Adds an entry point to run a libraries example. |
| docs/core/whats-new/dotnet-11/snippets/csharp/Libraries.cs | Adds new libraries examples (LINQ joins, JSON pipe writer streaming, crypto, etc.). |
| docs/core/whats-new/dotnet-11/sdk.md | Updates “last updated for Preview 5” and ms.date. |
| docs/core/whats-new/dotnet-11/runtime.md | Updates “last updated for Preview 5” and ms.date. |
| docs/core/whats-new/dotnet-11/overview.md | Updates “last updated” and expands the libraries bullet list. |
| docs/core/whats-new/dotnet-11/libraries.md | Adds/expands libraries feature sections and code references for Preview 5. |
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
BillWagner
approved these changes
Jun 11, 2026
BillWagner
left a comment
Member
There was a problem hiding this comment.
This all LGTM @gewarren
Let's ![]()
Member
|
Note OPS warnings before merging. I think they'll all be addressed by dotnet/dotnet-api-docs#12732 This one should probably be merged rather than squashed, right @gewarren ? |
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.
Internal previews