Reputation: 9485
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)
Upvotes: 4
Views: 3500
Reputation: 9298
If your talking about the Decorator design pattern there is a very clear example on dofactory.com.
Hope this helps
Upvotes: 0
Reputation: 351586
.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.
Upvotes: 4
Reputation: 82355
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.
Upvotes: 1