C# 【C#】record型完全ガイド|自動生成メンバー・with式・record struct・継承・DDD活用まで
C# record型を完全解説。コンパイラ自動生成メンバー(PrintMembers・Deconstruct・EqualityContract)・with式の内部実装・record継承とsealed・record struct vs readonly record struct・System.Text.Json・DDDバリューオブジェクトへの応用まで。