C# Has New Primary Constructors

Published: 14 November 2023
on channel: Bald. Bearded. Builder.
405
19

Let's learn how to use C# 12's new primary constructors. These new constructors allow you to create custom objects in a more concise and organized way, making your code easier to read and maintain.

00:00 - Primary Constructors are nice
00:12 - Comparing the old and new syntax of constructors
00:58 - Expression body members
01:11 - Dependency injection
01:32 - Gotchas you want to watch out for

Don't forget to comment, like and subscribe 🚀

💬 JOIN US ON DISCORD
https://bbb.dev/discord

🧑‍💻 LET'S CONNECT ON SOCIAL
Twitter:   / michaeljolley  
Blog: https://baldbeardedbuilder.com
TikTok:   / baldbeardedbuilder  
Instagram:   / baldbeardedbuilder  
Twitch: https://twitch.com/baldbeardedbuilder

#csharp #dotnet #dotnetconf


Watch video C# Has New Primary Constructors online without registration, duration hours minute second in high quality. This video was added by user Bald. Bearded. Builder. 14 November 2023, don't forget to share it with your friends and acquaintances, it has been viewed on our site 40 once and liked it 1 people.