Attribute in C#

(properties, übernommen von Delphi)

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



Johannes Waldmann 2007-01-23