You can use C# records in .NET Framework 4.x
Today I learned that you can use C# records that were introduced in C# 9 even if you鈥檙e not on .NET Core yet. NDepend has a post on how to do this which is slightly more involved. But per this Stack Overflow answer, all I did was add a file with the following: namespace System.Runtime.CompilerServices { internal class IsExternalInit { } } and that worked. I鈥檝e been using them in unit tests like this post describes.