Skip to content

[C# 15-Fundamentals and reference]: Extension indexers #54656

Description

@BillWagner

.NET 11 Preview

.NET 11 Preview 6

Link to speclet

Link to Pull request

New behavior

It allows declaring and consuming indexers defined in extension blocks.

static class E
{
  extension(...)
  {
    int this[...] { get ... set ... }
  }
}

Language reference tasks

Update the extension containers language reference material

Everyday C# tasks

None.


Associated WorkItem - 595286

Metadata

Metadata

Assignees

Type

No type

Fields

No fields configured for issues without a type.

Projects

Status
✅ Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions