// Collection of code snippets by Arne Vajhøj // (likely posted to comp.os.vms/INFO-VAX, INFO-TPU, MACRO32, eksperten.dk, newz.dk, LinkedIn or other place sometime between 1990 and now) using System; public class Init { private static int v1 = 1; private static int v2; private int v3 = 3; private int v4; static Init() { v2 = 2; } public Init() { v4 = 4; } public Init(int v) { v4 = v; } public override string ToString() { return string.Format("({0},{1},{2},{3})", v1, v2, v3, v4); } public static void Main(string[] args) { Console.WriteLine(new Init()); Console.WriteLine(new Init(-4)); } }