// Collection of code snippets by Arne Vajhøj // (from articles on eksperten.dk / vajhoej.dk written sometime between 2004 and now) using System; namespace E { public class Data { public int A { get; set; } = 123; public int B { get; set; } = 456; } public class Programs { public static void Main(string[] args) { Data o = new Data(); Console.WriteLine(o.A + " " + o.B); } } }