Here is What Hides in Every C# Record (And How You Can Use That)

Zoran Horvat
Zoran Horvat
9.6 هزار بار بازدید - 2 سال پیش - Become a patron and get
Become a patron and get access to source code and exclusive live streams: Patreon: here-is-what-in-81378321

In this video, you will learn what records are in C#, and how to utilize them in a couple of basic usage scenarios. You will also learn what non-destructive mutation is, and how to maintain vertical compatibility when adding properties to an existing record type.
But, more important than anything else, you will see all the methods and properties that compiler will generate for you when you declare a record. You will never want to implement value-typed semantic into a custom class ever again, after you see the sheer volume and the level of details of what compiler will generate for you in a record class - for free!

Learn more from video courses:
Beginning Object-oriented Programming with C# ► https://codinghelmet.com/go/beginning...
Collections and Generics in C# ► https://codinghelmet.com/go/collectio...
Making Your C# Code More Object-oriented ► https://codinghelmet.com/go/making-yo...

Other courses at Pluralsight ► https://codinghelmet.com/go/pluralsight
Other courses at Udemy ► https://codinghelmet.com/go/udemy

Other videos on this channel you may be interested in watching:
Using GitHub Copilot to Write Complex Code | Step-by-step Tutorial ► Using GitHub Copilot to Write Complex...
Coding with GitHub Copilot - Beginner to Master | VS Code Demo ► A Comprehensive Guide to GitHub Copil...
What is Covariance and Contravariance in C# ► What is Covariance and Contravariance...
How to Initialize a Clean ASP.NET Core Project with Entity Framework Core and Identity ► How to Initialize a Clean ASP.NET Cor...
The Null Conundrum: A Guide to Optional Objects in C# ► How to Avoid Null Reference Exception...
2 سال پیش در تاریخ 1401/02/16 منتشر شده است.
9,608 بـار بازدید شده
... بیشتر