// 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 X { public string S { get; set; } public X(string s) { this.S = s; } } public class TTN9 { public static void Main(string[] args) { X o = new("ABC"); Console.WriteLine($"{o.S}"); } }