Home All Groups Group Topic Archive Search About

How can I change attribute value via reflection

Author
15 Feb 2006 9:29 AM
Giò
Someone knows if is possible to change the value of a property
attribute at runtime, via reflection? I'd change the value of
DescriptionAttribute, but I don't know if is possible.  If isn't, is
possible add a custome attribute via reflection?
Thanks in advance.
Giò

Author
15 Feb 2006 5:13 PM
Mattias Sjögren
>Someone knows if is possible to change the value of a property
>attribute at runtime, via reflection?

No it isn't.


>If isn't, is
>possible add a custome attribute via reflection?

Not to existing types, no.


Mattias

--
Mattias Sjögren [C# MVP]  mattias @ mvps.org
http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
Please reply only to the newsgroup.