filmov
tv
What is new in C# 9? : Record Types

Показать описание
C# has proved its world class standards again by introducing several new features in the current version 9. Record types helps you to create immutable reference object. You can consider using it to represent models, where instead of representing it as class, you can create it as a record. Anyway under the hood, c# will write its boilerplate and create a class. So, what is the advantage, first, in this asynchronous world it is much safer to transport this immutable record types among threads and there are a bunch of advantages like checking for equality, gethashcode, copy and clone, printmembers tostring, deconstruct and even inherit the records. We will now create a simple record to see it action. Let's jump right in.
I hope you enjoyed this video, please like share and subscribe and remember to press the bell icon. Thanks for watching.
I hope you enjoyed this video, please like share and subscribe and remember to press the bell icon. Thanks for watching.