Прекрасный и наглядный пример, который показывает как record (новая фича C# 9.0) помогает работать с иммутабельными моделями. (Помним, что иммутабельность - это свет и добро).
https://josef.codes/how-csharp-records-will-change-my-life/
#immutable #domain #models #records #cs9
https://josef.codes/how-csharp-records-will-change-my-life/
#immutable #domain #models #records #cs9
Josef Ottosson
How C# Records will change my life
The new record type will be a huge timesaver when working with immutable objects in C#.
record – это давно ожидаемая возможность, которую теперь предлагает C# 9! Тип record предназначен для удобного создания неизменяемых (иммутабельных) структур
https://blog.ndepend.com/c9-records-immutable-classes/
#CS9 #records
https://blog.ndepend.com/c9-records-immutable-classes/
#CS9 #records
NDepend
C#9 records: immutable classes - NDepend
C#9 introduces record to define immutable data classes with a consice syntax. Learn to use records and avoid common mistakes.
Взгляд на recod изнутри: декомпиляция в plain C#
https://garywoodfine.com/c-records-the-good-bad-ugly
#net6 #record #records
https://garywoodfine.com/c-records-the-good-bad-ugly
#net6 #record #records
Garywoodfine
C# Records - The good, bad & ugly | Gary Woodfine
C# 9.0 introduces record types, a reference type that provides synthesized methods to provide value semantics for equality. Dive in deeper to understand what this means