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