// 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; } public int B { get; set; } public Data() { A = 123; B = 456; } } public class Programs { public static void Main(string[] args) { Data o = new Data(); Console.WriteLine(o.A + " " + o.B); } } }