Delphi 2010 RTTI : Explore Enumerations

Posted by ZeDalaye on Stack Overflow See other posts from Stack Overflow or by ZeDalaye
Published on 2010-01-25T17:19:48Z Indexed on 2010/04/12 8:03 UTC
Read the original article Hit count: 419

Filed under:
|
|

Hi,

Considering such an enumeration :

type
  TTypeOfData = (
    [XmlName('ABC')] todABC,
    [XmlName('DEF')] todDEF,  
    [XmlName('GHI')] todGHI
  );

Where XmlName is a custom attribute used to define the serialization string for members of this enumeration.

How can I explore the attributes attached to each member of this enumeration ?

Regards,

-- Pierre

© Stack Overflow or respective owner

Related posts about delphi

Related posts about rtti