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