Attributes and Reflection

  • Thread starter Thread starter Hari
  • Start date Start date
H

Hari

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.
 
Using Custom Attributes for Validation
http://www.microsoft.com/belux/nl/msdn/community/columns/jtielens/attributes.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
 
Back
Top