NOBODY Can Agree On Primary Constructors in C# 12!
January 5, 2024
• 382 views
C# 12primary constructorsc# 12 primary constructorsc# primary constructorsprimary constructors c# 12primary constructors c#microsoft mvpthe new constructor type coming in c# 12 is weirdprimary constructorc# 12 new featuresprimary constructor in c# 12dotnet 8c# 12 featuresc# new featuresc# constructorsconstructor dependency injectionconstructor dependency injection c#primary constructors in c# 12c# 12 primary constructor.net new features
Another great debate in dotnet emerged with primary constructors in C# 12! A new feature as part of the language version, dotnet 8 and C# 12 gives us primary constructors on classes and not just records.
Why is it that nobody can seem to agree on their usage? Let's dive into the newest great debate!
Have you subscribed to my weekly newsletter yet? A 5-minute read every weekend, right to your inbox, so you can start your weekend learning off strong:
https://subscribe.devleader.ca
Check out all...
