lundi 16 novembre 2015

How are data annotations transformed at runtime?

In C# DataAnnotations allow you to specify some properties on classes, methods or properties.

My question is what exactly is happening behind the scene? Is it making use of the decorator pattern and wraps the class into another class that also contains the extra behaviour (eg. length of a string, range of a numeric etc) or it happens in a totally different manner?

Aucun commentaire:

Enregistrer un commentaire