Introducing C# 10: Record struct

added by DotNetKicks
8/3/2021 3:49:21 PM

1000 Views

Last year with the release of C# 9, Microsoft introduced records. The record keyword gives a referencetype new superpowers like immutability declared with positional records (or by using init-only properties), equality comparisons that mimic value types, and with-expressions that allows you to create a new record instance with the same property values, the properties you need to change.


0 comments