We shall see what are the record and how are they beneficial. record have been recently announced in c# 9.0 new features. Record provide a concise way of defining (immutable) object types especially when requirement is around data oriented scenarios.
With records you will never feel the need to create POCO DTOs again in your code. Record provide debugging assistance, equality, optimization and memory management out of the box. This is one the important topic and major improvement that pops up when we search whats new in dot net or whats new in C#.
In this video we shall be doing live coding and explaining the concepts using hands-on labs. Its also worth noticing how can record improve performance and optimization. We shall be going through 4 major aspects, creation of record and then immutability, equality and inheritance of the records.
Link to code: https://github.com/letsdocoding/dotnet-programming-general/tree/main/1.C%23%20Records
With an experience of more then 12 yrs in IT, Author is currently working as an Architect in Cloud and Microservices and helps organizations leverage to full potential in the Cloud Revolution. Author has worked across different domains such as Defense, Oil and Gas, Casinos, MedTech etc. In the part time, author loves to play Warcraft & AOE, write blogs and learn new things.