There's only one. Attribute classes by convention end in "Attribute", but
when applying an attribute, you can leave it out. So [DllImportAttribute]
and [DllImport] are just two ways of writing the same attribute.
..NET allows the shorthand version for attributes just as a convenience.
--
David Anton http://www.tangiblesoftwaresolutions.com
Convert VB to C#, C++, or Java
Convert C# to VB, C++, or Java
Convert C++ to C#, VB, or Java
Convert Java to C#, C++, or VB
Ask a Question
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.