Skip to content

.NET 11 Preview 5 stuff#54352

Merged
gewarren merged 3 commits into
mainfrom
net11-pre5
Jun 11, 2026
Merged

.NET 11 Preview 5 stuff#54352
gewarren merged 3 commits into
mainfrom
net11-pre5

Conversation

@gewarren gewarren requested a review from a team as a code owner June 10, 2026 21:00
Copilot AI review requested due to automatic review settings June 10, 2026 21:00
@gewarren gewarren requested a review from BillWagner as a code owner June 10, 2026 21:00
@dotnetrepoman dotnetrepoman Bot added this to the June 2026 milestone Jun 10, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

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/IUnion and refines union pattern-matching behavior (including not pattern 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, SerializeAsyncEnumerable enhancements, X25519DiffieHellman, EqualityComparer<T>.Create, and generic Random APIs).

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.

Comment thread docs/core/whats-new/dotnet-11/overview.md Outdated
Comment thread docs/core/whats-new/dotnet-11/libraries.md Outdated
Comment thread docs/core/whats-new/dotnet-11/snippets/csharp/Libraries.cs
Comment thread docs/csharp/language-reference/builtin-types/union.md
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>

@BillWagner BillWagner left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This all LGTM @gewarren

Let's :shipit:

@BillWagner

BillWagner commented Jun 11, 2026

Copy link
Copy Markdown
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 ?

@gewarren gewarren closed this Jun 11, 2026
@gewarren gewarren reopened this Jun 11, 2026
@gewarren gewarren merged commit 6a8c129 into main Jun 11, 2026
17 of 18 checks passed
@gewarren gewarren deleted the net11-pre5 branch June 11, 2026 20:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants