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.
Why I Switched to Primary Constructors for DI in C#
calendar_today
April 18, 2026
person
milan@milanjovanovic.tech (Milan Jovanović)
domain
modular-monolith