CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Mar 2010
    Posts
    2

    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

  2. #2
    Join Date
    Apr 2007
    Location
    Florida
    Posts
    403

    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
  •  





Click Here to Expand Forum to Full Width

Featured