-
March 11th, 2010, 07:51 AM
#1
Custom Attribute Help
I have a project with severa custom attributes in it (mainly using for testing).
I know that I can access them using system.reflection.
What I an wondering is if there is way to search my whole project and return a list of all the different custom attributes, and how many times they are used..........
Any help would be very appretiated
-
March 11th, 2010, 11:10 AM
#2
Re: Custom Attribute Help
If you have the Assembly object loaded and pointing to your assembly in question, you can use the GetCustomAttributes() method to get all custom attributes on it.
This should get you started.
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
|