Skip to content

[C# 13]: New Feature - ref struct interfaces #41206

Closed

Description

Visual Studio release

17.11p2

Link to speclet

Link to Pull request

New behavior

A new generic constraint allow ref struct allows a ref struct to implement that interface.

Areas affected

  • Add to What's new in C# 13: Add links to updated docs in the What's new in C# 13 article.
  • Update language reference: Detail the areas in the language reference that will be updated for this feature.
  • Update compiler messages: Add new (or updated) pages for new compiler messages. Include related message.
  • Include in Everyday C# section*: Is this new feature included in Everyday C#?
  • Tutorials: Are new tutorials required for this feature? If so, detail below

Language reference tasks

The where generic constraint page needs updated.
The page for ref struct needs to be updated to remove / update the restriction for implementing interfaces.

The F1 keyword for allows needs to be added to the generic where constraint page.

Programming guide content for generics should be examined.

Tutorial tasks

No response

Everyday C# tasks

No response


Associated WorkItem - 259821

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

Metadata

Assignees

Labels

🏁 Release: .NET 9Work items for the .NET 9 release📌 seQUESTeredIdentifies that an issue has been imported into Quest.Pri1High priority, do before Pri2 and Pri3dotnet-csharp/svcin-prThis issue will be closed (fixed) by an active pull request.resolved-by-customerIndicates issues where the customer no longer needs any help. [org][resolution]whats-new/subsvc

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions