// 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 C(int iv, double xv, string sv) { public C() : this(0, 0.0, "") { } public override string ToString() { return string.Format("({0},{1},{2})", iv, xv, sv); } } public class PCtor12 { public static void Main(string[] args) { Console.WriteLine(new C(123, 123.456, "ABC")); Console.WriteLine(new C()); } }