// 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 Test { private int v; public Test(int v) { this.v = v; } public int V { get { return v; } } public void Demo() { Console.WriteLine(v); } } public class Program { public static void Main(string[] args) { Test o = new Test(123); o.Demo(); } } }