tags:

views:

257

answers:

3

Me again.. I hear the phrase 'decorating / decorate' a method being thrown about a lot in tutorials I have read / watched. But I just don't understand what it means AND what it actually does?? Can anyone point me in the direction of some information on beginning to use them (Very novice tutorial would be good)

+1  A: 

Take a look at this article for an introduction and tutorial.

To Decorate in .NET you use attributes which act as metadata that is available to you at runtime which helps describe the items in your code.

Quintin Robinson
+3  A: 

.NET does not have "decorators" but it does have attributes. Developers often use the word "decorate" to indicate the usage of attributes. Here is a good article explaining how they work and how to use them.

Andrew Hare
Fantastic thanks for the link, just what I was looking for - This site is fantastic
leen3o
A: 

If your talking about the Decorator design pattern there is a very clear example on dofactory.com.

Hope this helps

Rohan West