// 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; namespace E { public class C { public int V; } public struct S { public int V; } public class Program { public static void Main(string[] args) { C c1 = new C(); c1.V = 123; C c2 = c1; c1.V = 456; Console.WriteLine(c1.V + " " + c2.V); S s1 = new S(); s1.V = 123; S s2 = s1; s1.V = 456; Console.WriteLine(s1.V + " " + s2.V); } } }