How AI is applied across API Evangelist and APIs.io. Read my AI disclosure →
API Evangelist API Evangelist
Discovery
Learnings
Guidance
Toolbox
Alignment
API Evangelist LLC

Why I Switched to Primary Constructors for DI in C#

calendar_today April 18, 2026 person milan@milanjovanovic.tech (Milan Jovanović) domain modular-monolith

I resisted primary constructors for a while. They felt like a shortcut that would cost me later. But after using them across several projects, I’m sold, with one important caveat. Here’s what convinced me to switch, and the one pitfall you need to watch out for.

open_in_new Read original post