From fb06fc1cf440dc38f2b42967f9bb02851820d1a0 Mon Sep 17 00:00:00 2001 From: Weihan Li Date: Sat, 13 Jun 2026 08:13:27 +0800 Subject: [PATCH] remove the description about the polyfill for union --- release-notes/11.0/preview/preview5/csharp.md | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/release-notes/11.0/preview/preview5/csharp.md b/release-notes/11.0/preview/preview5/csharp.md index 3932fbdf59..ceca35a22c 100644 --- a/release-notes/11.0/preview/preview5/csharp.md +++ b/release-notes/11.0/preview/preview5/csharp.md @@ -67,20 +67,6 @@ Union rules in this preview: The compiler also recognizes hand-authored union types marked with `System.Runtime.CompilerServices.UnionAttribute`, including union members supplied by a nested `IUnionMembers` provider interface ([dotnet/roslyn #83048](https://github.com/dotnet/roslyn/pull/83048), [dotnet/roslyn #83208](https://github.com/dotnet/roslyn/pull/83208)). -In this preview, projects that declare unions need the compiler support types available to the compilation: - -```csharp -namespace System.Runtime.CompilerServices; - -[AttributeUsage(AttributeTargets.Class | AttributeTargets.Struct, AllowMultiple = false)] -public sealed class UnionAttribute : Attribute { } - -public interface IUnion -{ - object? Value { get; } -} -``` - ## Unsafe Evolution > This is a preview feature for .NET 11.