Vote UpVote

Using Attributes and TCustomAttribute descendants

Rob's Technology Corner – With Delphi 2010 attributes have been added as a language feature. They have been available in Delphi Prism (Targets .NET) and this now adds similar functionality to Win32.Attributes are a way of associating additional metadata information with a given type or member of a type.They can be applied in many places, the following code shows several of the places you can place attributes. // Declaring an attribute. TAttrTest = class(TCustomAttribute) end; // Places you can use an attribute. [TAttrTest] TRec = Record [TAttrTest] value : String; [TAttrTest] procedure ...
Favorite? Off-Topic? Robert Love @ 2009-09-11 20:40


Visits: 515
Votes: 3
Favorites: 1
Off-Topic: 0

Visits by Source

User Actions

Users who voted for this posting

Charles Ardour
Neville Cook
Contact us to advertise on DelphiFeeds.com

Community Links

Torry Firebird News


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