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.
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.
Yes, here (scroll to the bottom under the code examples) http://msdn.microsoft.com/en-us/library/system.attribute.aspx
Here is a list, but it's not complete. There are over 200 attributes.
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.
You may not find what you're looking for because it's possible that you're looking at a custom attribute.
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.
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.