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
2009-03-24 19:49:27
+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
2009-03-24 19:49:28
Fantastic thanks for the link, just what I was looking for - This site is fantastic
leen3o
2009-03-24 19:55:37
A:
If your talking about the Decorator design pattern there is a very clear example on dofactory.com.
Hope this helps
Rohan West
2009-03-24 19:50:10