0
votes
Vote UpVote

Finding yourself in a property bind

Lars Fosdal – From the wishful thinking department, I would love to be able to var Src: TSomeClass; MyObject : TBoundObject<Boolean>; begin MyObject.Bind(Src, CompilerMagic(TSomeClass.SomeBooleanProperty)); end; instead of var Src: TSomeClass; MyObject : TBoundObject<TSomeClass, Boolean>; begin MyObject.Bind(Src, 'SomeBooleanProperty'); end;Why? Because the first one is resilient to property renaming. Until I can, I am stuck with using something similar to var Src: TSomeClass; MyObject : TBoundObject<TSomeClass, Boolean>; begin MyObject.Bind(Src, function (const ...
Favorite? Off-Topic? Lars Fosdal @ 2011-06-14 19:24

Statistics

Visits: 17
Votes: 0
Favorites: 0
Off-Topic: 0

Visits by Source

User Actions

Users who voted for this posting

Subscribe:
Contact us to advertise on DelphiFeeds.com

Community Links

Torry Firebird News

Sponsor

 
Please login or register to use this functionality.
(click on this box to dismiss)