#9856·csharplang

[Proposal]: extension indexers (VS 18.8, .NET 11)

Author: jcouvCreated Dec 1, 2025Updated Aug 12, 2026
LabelsProposal championImplemented Needs ECMA Spec

Extension indexers

Summary

We add the ability to declare extension indexers.

csharp
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