"Simple Struct Record Type Definition"

public readonly record struct User(string Name, int Age);

// ...

var user = new User { Name = "Ben", Age = 32 };
user.Name = "Seb"; // Won't compile, 'Name' is init-only


Code snippet taken from "Two Decades of C#: A Reference - C# 10".