Using ()s in @property functions

sclytrack sclytrack at sorry.com
Wed Jul 7 01:35:51 PDT 2010


== Quote from sclytrack (sclytrack at fake.com)'s article
> 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.

Sorry about that, it does not appear to work, I should test the code before I post.



More information about the Digitalmars-d mailing list