[Mono-list] Adding missing Attributes to System.Web
Dwivedi , Ajay Kumar
AjayKumar.Dwivedi@dresdner-bank.com
Wed, 12 Jun 2002 12:35:49 +0100
> Unfortunately (AFAIK, it's been a while...) you can only get
> the Type of
> an Attribute that's applied to a class
> (Type.GetCustomAttributes()), not
> an instantiation of that attribute (Type vs. RuntimeType). I couldn't
> find a way to get the value of a property from just a Type.
>
I think its otherwise. You get an *instance* of the attribute.
And you can get the values of parameters on it.
See
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/csref/html/
vclrfretrievingattributeinformation.asp
Happy Hacking,
Ajay