マイクロソフトにサンプル載ってる
https://learn.microsoft.com/ja-jp/dotnet/csharp/fundamentals/types/records