Results 1 to 3 of 3

Thread: [RESOLVED] is there a list of all .Net attributes somewhere?

  1. #1

    Thread Starter
    Fanatic Member Dnereb's Avatar
    Join Date
    Aug 2005
    Location
    Netherlands
    Posts
    863

    Resolved [RESOLVED] is there a list of all .Net attributes somewhere?

    Goodday,


    the title says it all.
    I've looked on MSDN and Googled for it and spend over 2 hours searching...
    so I hope I've over looked some link or possible search argument.
    but I can't find a list off all .Net attributes (hopefully in alphabetical order) anywhere.

    I've had this problem before and asking around if anybody by accident knows an attribute that does .... is not really a good way to find the attribute you need.

    At the moment I'm looking for an attribute to surpress adding a controle to the toolbox if autopopulate is on.
    I know I can make controls friend, but I use some of those in other projects of the solution as well. But I don't need to place them anywhere anymore because that part is developed and tested...
    so an attribute to make them not overcrowd the toolbox would be great!
    why can't programmers keep and 31 Oct and 25 dec apart. Why Rating is Useful
    for every question you ask provide an answer on another thread.

  2. #2
    Fanatic Member Andy_P's Avatar
    Join Date
    May 2005
    Location
    Dunstable, England
    Posts
    669

    Re: is there a list of all .Net attributes somewhere?

    1. From within VS, open the Object browser.
    2. Select the option 'Show derived types'
    3. Expand the mscorlib assembly.
    4. Expand the System namespace.
    5. Search for the Attribute base class.
    6. Expand the 'Derived types' folder.
    7. Bingo! All the attributes that are derived from the base Attribute class, and in alphabetical order too.

    I'm not sure if there is one that can help with what you want to do or not though.

    Attached is a screenshot from C# 2008 Express. I assume that all versions of VS will look similar, if not the same.
    Attached Images Attached Images  
    Using Windows XP Home sp3
    Mucking around with C# 2008 Express
    while ( this.deadHorse ) { flog( ); }


  3. #3

    Thread Starter
    Fanatic Member Dnereb's Avatar
    Join Date
    Aug 2005
    Location
    Netherlands
    Posts
    863

    Re: is there a list of all .Net attributes somewhere?

    Thx!

    Although it did not solve my inmediate problem,it will save a lot of time in future!
    why can't programmers keep and 31 Oct and 25 dec apart. Why Rating is Useful
    for every question you ask provide an answer on another thread.

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