Method registration in ASP.NET?

I again .. I hear the phrase “decorate / decorate” a method that throws a lot into textbooks that I read / observed. But I just don’t understand what this means. And what does it really do? Can someone point me towards some information on how to start using them (a very useful tutorial would be good)

+4
source share
3 answers

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

+4
source

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

To decorate .NET, you use attributes that act as metadata available to you at runtime, which helps describe the elements in your code.

+1
source

If you are talking about the Decorator design pattern, there is a very clear example at dofactory.com .

Hope this helps

0
source

All Articles