RECORD TYPES | Exploring C# and DOTNET | Rahul Nath
Vložit
- čas přidán 20. 06. 2024
- Hey👋 Record types in C# provide a concise and expressive way to define immutable data structures. They automatically generate boilerplate code for value equality, deconstruction, and common methods like `Equals,` `GetHashCode,` and `ToString`
In this video lets,
• Dive into Record Types
• Features of Record Types
• Pitfalls with Record Types
We will progressively build up Record Types from a simple .NET class type while understanding and exploring the different features that they provide.
We will learn about
• Positional Syntax
• Non-destructive Mutation
• Built-in Formatting For Display
• Generated Deconstruct Method
00:00 Introduction
00:31 Record Types
00:47 Class
02:02 Defining Record Type
03:08 Constructor
03:53 Primary Constructors
04:35 Immutability
05:40 Positional Syntax
07:01 Non-destructive mutation
08:42 Formatting For Display
09:45 Deconstruct
10:58 Compiler Generated Code
12:24 Value Equality
14:52 Conclusion
🔗 Record Types - learn.microsoft.com/en-us/dot...
Additional Watching
📹 ASP Series - bit.ly/asp-net-core-series
📹Azure Series - bit.ly/azure-series
📹AWS Series - bit.ly/aws-net-series
📹RabbitMQ Series - bit.ly/rabbitmq-net-series
Come say hi! ✋
🎙️Uses - www.rahulpnath.com/uses
🌍Blog - www.rahulpnath.com/
✉ Subscribe to my Newsletter - www.rahulpnath.com/subscribe
🐦Twitter - / rahulpnath
📸Instagram - / rahulpnath
#dotnet #csharp - Jak na to + styl
Very informative and clearly explained. The examples are very helpful to see the different aspects and uses of the language and intent. Great work!
Very happy to hear that!
You have done a great work in explaining Record types in details. I will like to see the differences when working with Struct
Thank you and Great suggestion! Sure will cover more about it soon.
Very useful content, thanks!
Good presentation indeed. Congrats!!!
Thank you 😀😀
Really informative
Glad you liked it Royce!!
your all videos are simply fantastic... keep it up.. Many thanks.
Thank you so much Deepak😀
Good stuff bro!!.
Glad you liked it!!
great
Glad you liked it Isaac!
Great video. I just do not see a real world example on where to apply this.