Attributes don't inherit?

Posted by Stebi on Stack Overflow See other posts from Stack Overflow or by Stebi
Published on 2010-04-23T11:34:51Z Indexed on 2010/05/03 18:28 UTC
Read the original article Hit count: 269

Filed under:
|
|

I played with attributes and assumed that they are inherited but it doesn't seem so:

type
  [MyAttribute]
  TClass1 = class
  end;

  TClass2 = class(TClass1)
  end;

TClass2 doesn't have the Attribute "MyAttribute" although it inherits from Class1. Is there any possibility to make an attribute inheritable? Or do I have to go up the class hierarchy and search for attributes?

© Stack Overflow or respective owner

Related posts about delphi

Related posts about delphi-2010