Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 0 additions & 14 deletions release-notes/11.0/preview/preview5/csharp.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
Loading