What does this mean?

  • Thread starter Thread starter Twitch
  • Start date Start date
T

Twitch

Specifically, the stuff in the square brackets at the beginning of the class
decl.. How does it apply to the class?

thx.

/// <summary>
/// Data Access Object for Message
/// </summary>
[ Transaction( TransactionOption.Required ) ]
sealed public class DAOMessage : DAOBase
{
 
Like John said, they are attributes which hold metadata about the
method/property etc. They are extremely powerful and you can do a
tremendous amount with them.. Here's an example of using to address a
common security issue
http://www.knowdotnet.com/articles/securityattributes.html
You may want to check out Jason Bock's book on them
http://www.amazon.com/exec/obidos/tg/detail/-/1590591364/qid=1075990797//ref
=sr_8_xs_ap_i2_xgl14/103-2828645-0593415?v=glance&s=books&n=507846
or google on Aspect Oriented Programming for a little more info on them..
 
Duh, sorry. I double posted. Thankyou Jon & William...


William Ryan eMVP said:
Like John said, they are attributes which hold metadata about the
method/property etc. They are extremely powerful and you can do a
tremendous amount with them.. Here's an example of using to address a
common security issue
http://www.knowdotnet.com/articles/securityattributes.html
You may want to check out Jason Bock's book on them
http://www.amazon.com/exec/obidos/tg/detail/-/1590591364/qid=1075990797//ref
=sr_8_xs_ap_i2_xgl14/103-2828645-0593415?v=glance&s=books&n=507846
or google on Aspect Oriented Programming for a little more info on them..
Twitch said:
Specifically, the stuff in the square brackets at the beginning of the class
decl.. How does it apply to the class?

thx.

/// <summary>
/// Data Access Object for Message
/// </summary>
[ Transaction( TransactionOption.Required ) ]
sealed public class DAOMessage : DAOBase
{
 
Back
Top