Skip to content

[Proposal]: extension indexers #9856

@jcouv

Description

@jcouv

Extension indexers

Summary

We add the ability to declare extension indexers.

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

There are also some other extension improvements we should consider (see cut list from C# 14)

LDM Meetings

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions