Code
Every claim below is backed by a test — the full extension syntax, the two compiler diagnostics, and the silent shadowing behavior, each verified against the .NET 10 SDK rather than quoted from documentation: csharp14-extension-members-dotnet10 . 8 tests pass, and dotnet build produces 0 warnings — which is itself part of the point.
A Property That Stopped Being Called, and Nothing Said So
A team extends Order , a record they don't want to touch directly because it's shared across three services, with a computed property for a shipping promotion:
extension ( Order order ) { public bool IsEligibleForFreeShipping => order . Total >= 50m && order . Region == "EU" ; }
Enter fullscreen mode
Exit fullscreen mode
It ships. It's used at a dozen call sites, reading exactly like a real property because syntactically it is one now.…