C# record types are designed to be immutable and can create a new instance based on an existing instance using the 'with' expression. The compiler generates a default copy constructor, but you can create your own if needed.
Sort: