[ ] blocks over classes

  • Thread starter Thread starter ozgur develioglu
  • Start date Start date
O

ozgur develioglu

Hi,

What serves [ ] blocks just over the class declarations. They like:

[Transaction(TransactionOption.NotSupported)]
public class MyObject:DALObject
{....

I'm dealing with C# for nearly a year but I coudn't find any information
about this. Can you send me a reference please?

Ozgur.
 
In addition to the comments above,
attributes are used to provide "metadata".
Like in the example you gave, it just says: Hey Runtime, this entire class
doesn't support transactions!

Hope it helps,
-- Rob.
 

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