Properties

vereinfachte Notation mit dem Ziel:

Beispiel

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



Johannes Waldmann 2006-06-22