chiprook
← Software
SoftwareOctober 30, 2026, 08:38

C# 15 lets you add indexers to types you don't own via extensions

C# 15, shipping with .NET 11 in November, lets developers declare a this[...] indexer inside an extension block for types they cannot modify. Combined with Count and Slice, it enables ^1, ranges and list patterns; the feature was tested on the .NET 11 RC 1 SDK.

C# 15 lets you add indexers to types you don't own via extensions
#Microsoft#C##.NET
Read next
Software

MCP C# SDK 2.0 makes HTTP stateless by default, adds multi round-trip requests

Software

.NET 11 adds async validation to DataAnnotations

Software

.NET 11 adds FullJoin and selector-free LINQ join overloads

Software

.NET 11 adds Process.RunAndCaptureText to avoid process deadlocks