C# Has New Primary Constructors

Опубликовано: 14 Ноябрь 2023
на канале: 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