// Collection of code snippets by Arne Vajhøj // (from articles on eksperten.dk / vajhoej.dk written sometime between 2004 and now) using System; public record class Data(int Iv, string Sv); public class Rec9 { public static void Main(string[] args) { Data o = new Data(123, "ABC"); Console.WriteLine($"{o.Iv} {o.Sv}"); } }