Vote UpVote

Exploring TRttiMember Descendants in depth (Part I) Properties and Fields

Rob's Technology Corner – Some types such as classes and records contain "members" such as field, properties and methods.RTTI information starts with the TRttiMember which provides 4 bits of information about each Member.The nameVisibility (private,protected,public,published)The type that the member is associated withAttributes associated with that memberThis example code shows how to access each of these.program Project4;{$APPTYPE CONSOLE}uses SysUtils, Rtti, TypInfo;type TTest = class(TCustomAttribute) end; TBook = class(TObject) private FTitle: String; public [TTest] property Title : String read ...
Favorite? Off-Topic? Robert Love @ 2009-09-15 19:25


Visits: 325
Votes: 4
Favorites: 0
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)