Skip to content

Update C# 15 docs for .NET 11 RC1 stabilization #56248

Description

@eiriktsarpalis

Describe the issue or suggestion

.NET 11 RC1 selects C# 15 by default for net11.0. The official C# RC1 release notes identify union types, closed class hierarchies, and extension indexers as stabilized C# 15 features. They no longer require <LangVersion>preview</LangVersion>. Several docs still say otherwise:

Update the tutorials and their samples together. The telemetry-monitor projects under docs/csharp/whats-new/tutorials/snippets/shared/telemetry-monitor/ still target net10.0 with LangVersion=preview; simply removing that property would not make them .NET 11 examples. The PointExtensions sample project and union language-reference sample project already target net11.0 but still opt into preview syntax. Retarget or simplify the project files as appropriate, remove the now-unnecessary closed-hierarchy polyfill if the updated sample builds without it, and run the samples with the .NET 11 SDK.

Do not remove preview guidance for the separate Unsafe Evolution / updated memory safety rules feature. The RC1 notes explicitly say that feature still requires <LangVersion>preview</LangVersion> and its feature flag.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions