[ ] 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.
 
Back
Top