Skip to content
Wade Womersley

wade.one

wade womersley – york based software engineer

  • Home
  • 2026
  • June
  • 6
  • C# 14 Extension Members Need Restraint

C# 14 Extension Members Need Restraint

Posted on June 6, 2026June 8, 2026 By Wade No Comments on C# 14 Extension Members Need Restraint
Programming, Software Engineer

C# 14 extension members are useful, but they are also the sort of feature that needs taste. They can make code nicer to read. They can also make an API feel like it has secret doors everywhere.

The Microsoft docs for what is new in C# 14 describe extension members as a broader syntax for declaring extension properties and extension methods, including members that appear as static members of the extended type. That is powerful because it removes some of the helper-class noise that builds up around common types.

The danger is discoverability. Extension methods were already easy to overuse. Extension properties and static extension members raise the same question: when I read this type, where does this member actually come from? If the answer is “from whatever namespace happened to be imported,” the code can get clever quickly.

I would use extension members for stable, obvious vocabulary around types your team already treats as domain concepts. I would not use them to hide business rules or make unrelated APIs look native. The best version of this feature removes friction. The worst version turns ordinary code reading into a hunt.

Share:

  • Share on Facebook (Opens in new window) Facebook
  • Share on X (Opens in new window) X
  • Share on Tumblr (Opens in new window) Tumblr
  • Share on Pinterest (Opens in new window) Pinterest
  • Share on LinkedIn (Opens in new window) LinkedIn
  • Share on Reddit (Opens in new window) Reddit

Related

Comments

comments

Tags: csharp csharp-14 extension-members refactoring

Post navigation

❮ Previous Post: .NET 10 Is About the Support Window as Much as C# 14
Next Post: C# 14 field-backed Properties Are Small but Useful ❯

You may also like

Programming
Why Kotlin Coroutines Are Worth the Learning Curve
April 14, 2026
Programming
#PHPUK2010 Part 2 (MySQL stuff)
February 26, 2010
Programming
#leedsphp talk slides uploaded
April 22, 2011
Programming
Most Mobile App Complexity Is Not in the UI
April 6, 2026

Leave a Reply Cancel reply

You must be logged in to post a comment.

This site uses Akismet to reduce spam. Learn how your comment data is processed.

  • AI
  • artificial intelligence
  • Ego-centric
  • Events
  • Films
  • Food
  • Gaming
  • Gym
  • Hardware
  • Holidays
  • News
  • PHP
  • Programming
  • Random Stuff
  • Reviews
  • Science
  • SEO
  • Software
  • Software Engineer
  • Support
  • Uncategorized
  • Work

Copyright © 2026 wade.one.

Theme: Oceanly News Dark by ScriptsTown