Why I won’t need constructors anymore in C# 11

Why I won’t need constructors anymore in C# 11

Check out my new "Integration testing in ASP .NET Core" course and use code INTESTING1 for 20% off (first 300): https://nickchapsas.com/p/from-zero-to-hero-integration-testing-in-asp-net-core
Become a Patreon and get source code access: https://www.patreon.com/nickchapsas

Hello everybody I'm Nick and in this video I will introduce you to the brand new "required" keyword that is being added in C# 11. It is a great language feature that solves one of my biggest problems with object initialization, and it eliminated the need for constructors for that usecase.

Link to the required keyword feature issue: https://github.com/dotnet/csharplang/issues/3630

Don't forget to comment, like and subscribe :)

Social Media:
Follow me on GitHub: http://bit.ly/ChapsasGitHub
Follow me on Twitter: http://bit.ly/ChapsasTwitter
Connect on LinkedIn: http://bit.ly/ChapsasLinkedIn

Keep coding merch: https://keepcoding.shop

#csharp #dotnet

Elfocrashelfocoding

Post a Comment

0 Comments