A
Andrew Roberts
Does anyone know is it possible to create a custom attribute, say
CustomProgIdAttribtute
That when applied to a class will also apply another attribute to it, say
ProgIdAttribute
What I want is to create a custom ProgId attribute that takes two strings and then creates the string for the ProgIdAttribute and applies it.
I thought of derivation but this won't work for several reasons especialy due to the fact that the attributes are all sealed.
Any ideas? Can you programaticaly set an attribute onto a target from the code of another that is applied to that target?
CustomProgIdAttribtute
That when applied to a class will also apply another attribute to it, say
ProgIdAttribute
What I want is to create a custom ProgId attribute that takes two strings and then creates the string for the ProgIdAttribute and applies it.
I thought of derivation but this won't work for several reasons especialy due to the fact that the attributes are all sealed.
Any ideas? Can you programaticaly set an attribute onto a target from the code of another that is applied to that target?