// 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 DefParm { private int v; public DefParm(int v = 0) { this.v = v; } public override string ToString() { return "v:" + v; } public static void Main(string[] args) { Console.WriteLine(new DefParm()); Console.WriteLine(new DefParm(1)); } }