Using ()s in @property functions

sclytrack sclytrack at fake.com
Wed Jul 7 01:08:25 PDT 2010


C# doesn't allow ref on properties.

void doStuff( ref int a) {a++;}
doStuff(obj.NumberProperty);

//Compiler magic. Stores in local variables behind the scenes. Calls getter and
setter.


More information about the Digitalmars-d mailing list