C# 9 Records

preview_player
Показать описание
Coding Tutorial. What do you get if you cross a value type with a reference type? In C#9, you get a record.

Рекомендации по теме
Комментарии
Автор

Anything else new in C#9 you're interested in? Leave a message.
And if you liked it, click the 👍.

CodingTutorialsAreGo
Автор

Thank you very much for the detailed video.

niroshanmanoharan
Автор

I would like to note something.
If you have a record like this
public record Dog(string Name);
which has only 1 Parameter or filed,
to make a default ctor you do it like this
public Dog() : this(Name: default)
{ }
Because 'this(default)' will give you an overload error.
And again thank you for the amazing view Subscribed <3

SharafMansour
Автор

Can records be used as part of ViewModel?
How to notify allow user to change one of records properties and how to implement some kind of OnPropertyChanged event ?

tayablackrose