// 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 NotConst { private readonly int v; // if readonly is replaced with const then it does not compile public NotConst(int v) { this.v = v; } public void Test() { Console.WriteLine(v); } public static void Main(string[] args) { (new NotConst(123)).Test(); (new NotConst(777)).Test(); } }