views:

568

answers:

6

Hi, Is there a list somewhere on common Attributes which are used in objects like Serializable?

Thanks

Edit ~ The reason I asked is that I came across an StoredProcedure attribute in ntiers ORMS.

+6  A: 

Yes, here (scroll to the bottom under the code examples) http://msdn.microsoft.com/en-us/library/system.attribute.aspx

StingyJack
All I saw was "Attributes which are used in objects like ?" - The post had been stripped of its serializable attribute. I though he was asking about nullables (? and ??)
StingyJack
removed comments and updated answer to have accurate information once misunderstanding was cleared up
John Sheehan
thanks- I am retarded some days.
StingyJack
+2  A: 

Here is a list, but it's not complete. There are over 200 attributes.

Tom Ritter
I came across this earlier. I was wondering if there is a complete list.
Saif Khan
+2  A: 

I'm not aware of a complete list of Attributes, but a search for Attribute in MSDN can yield interesting results. I have tended to browse namespaces for interesting attribute types and then go look them up to see what I might use them for. Not the most efficient approach, I know.

The MSDN entry for System.Attribute has a list at the bottom.

Jeff Yates
+1  A: 

You may not find what you're looking for because it's possible that you're looking at a custom attribute.

http://www.code-magazine.com/Article.aspx?quickid=0307041

ilitirit
+2  A: 

Additionally, you can create your own attributes. If you are searching through someone else's code, it's easy to get confused when they create their own.

JTA
+1  A: 

You can use Reflector to browse the mscorlib assembly, and under System.Attribute, expand the Derived Types node. It will show all attributes for all the assemblies currently loaded in Reflector.

Mark Cidade