RECORD TYPES | Exploring C# and DOTNET | Rahul Nath

Описание к видео RECORD TYPES | Exploring C# and DOTNET | Rahul Nath

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 - https://learn.microsoft.com/en-us/dot...

Additional Watching
📹 ASP Series - https://bit.ly/asp-net-core-series
📹Azure Series - https://bit.ly/azure-series
📹AWS Series - https://bit.ly/aws-net-series
📹RabbitMQ Series - https://bit.ly/rabbitmq-net-series

Come say hi! ✋
🎙️Uses - https://www.rahulpnath.com/uses
🌍Blog - https://www.rahulpnath.com/
✉ Subscribe to my Newsletter - https://www.rahulpnath.com/subscribe
🐦Twitter -   / rahulpnath  
📸Instagram -   / rahulpnath  

#dotnet #csharp

Комментарии

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