Using Custom Attributes for Validation
http://www.microsoft.com/belux/nl/ms...ttributes.mspx
Attributes can be used to decorate language elements with additional
information that can be retrieved at run time by using Reflection. You can
easily build your own custom attributes to create powerful generic
solutions. At first sight they might to seem a little bit useless. But this
article shows how they can be used to create a simple extensible framework
to provide validation of property values.
Being flexible: CodeDom + Reflection = Killer Combo
http://weblogs.asp.net/jan/posts/28744.aspx
--
Greetz,
Jan
__________________________________
Read my weblog:
http://weblogs.asp.net/jan
"Hari" <an*******@discussions.microsoft.com> schreef in bericht
news:uw**************@TK2MSFTNGP12.phx.gbl...
Hello,
I am quite new to C# and when reading over a couple of books
discovered the presence of reflection and attributes.
While, I do understand them a little, it would be great if I could know a
little more about how they are actually used in commercial apps that devs
are writing.
Any pointers to articles/books/websites would be very helpful.
Thanks.