views:

76

answers:

1

With

  Cont := TRttiContext.Create;
  for Prop in Cont.GetType(TStrings).GetDeclaredProperties do
    Memo1.Lines.Add(Prop.ToString);
  Cont.Free;

I get list of all properties of TStrings except indexed properties (Strings, Values, ...). As I can see in Get[Declared]Properties are never indexed properties. How can I get indexed properties too?

+3  A: 

You can't. They aren't included in Delphi 2010's RTTI.

Mason Wheeler
Short and to the point. Nice. :)
Deltics
Well, there's not much more I could say. I've got some idea as to why, but I couldn't explain it very well. Barry Kelly probably could. I wonder if he'll see this question...
Mason Wheeler