|
-
Sep 2nd, 2003, 05:26 AM
#1
Thread Starter
Frenzied Member
Attributes - Can they know what type they are applied to?
I have a custom class that inherits from System.ComponentModel.CategoryAttribute and I want to override the GetLocalizedString function to return a localised category other than the standard ones (Appearance, Behaviour, Data etc.)
Is it possible for an attribute to get the type name of the thing it is applied to? The reason being that the resourcemanager that returns the description and category attribute needs to know which component type it is being called to return the localised string for.
Thanks in advance,
Duncan Jones
Merrion Computing Ltd
http://www.merrioncomputing.com
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|