Zeiger in C#

class/struct Foo { public int bar; }

public static void Main () {
    Foo x = new Foo (); x.bar = 3;
    System.Console.WriteLine (x.bar);
    Foo y = x; 	        y.bar = 4;
    System.Console.WriteLine (x.bar);
}



2010-02-04