Intro to Records in C# 9 - How To Use Records And When To Use Them

Описание к видео Intro to Records in C# 9 - How To Use Records And When To Use Them

C# 9 is out and with it comes a new, and somewhat confusing feature: records. In this video, we are going to look at what records are, how to use them effectively, and then we will talk about when they would be useful and, just as importantly, when you should not use them.

Source Code: https://leadmagnets.app/?Resource=Int...
Patreon):   / iamtimcorey  
Mailing List: https://signup.iamtimcorey.com/
Purchase courses: https://www.iamtimcorey.com

0:00 - Intro
0:57 - Getting started: demo console app
2:16 - How to use Records
3:45 - Records: declared and explained
6:55 - Record features
13:00 - Records vs. Class: ToString() override
17:04 - Records vs. Class: compare objects
20:49 - Records vs. Class: compare object reference
22:10 - Records vs. Class: compare object ==
24:31 - Records vs. Class: object Hash Code
27:10 - Records vs. Class: Recap
28:13 - Records vs. Class: Deconstructor
31:32 - Records vs. Class: Record Object copy
34:30 - About Records
36:19 - Record property access modifier
40:12 - Other Properties in Records
42:53 - Methods in Records
43:56 - Full Properties in Records
47:33 - Recap
49:49 - Record inheritance
52:57 - Why Records?
53:53 - /*Benefits*/
57:45 - /*When to use Records*/
1:05:10 - /*When not to use Records*/
1:14:31 - Summary and concluding remarks (+ bonus: top level call args in C# 9)

Thanks to Ralfs HBK for the chapters breakdown

Комментарии

Информация по комментариям в разработке