DllImportAttribute and DllImport

  • Thread starter Thread starter csharp
  • Start date Start date
csharp said:
Is there any difference between this two?
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.
When to use which?
It's customary to use this ability to leave out "Attribute".
 

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.

Ask a Question

Back
Top