Properties

vereinfachte Notation mit dem Ziel:

Beispiel

class C {
    private int foo;
    public int Foo {
        get { return foo; }
        set { foo = value; }
    }
}
C x; C y; ... x.Foo = y.Foo + 3;



Johannes Waldmann 2007-06-21