Remove an attribute from a property at runtime
C#
1
Posts
1
Posters
0
Views
1
Watching
-
I have a public field in my class [XmlIgnore] public string MyVar; But at runtime I need to remove this decoration. Is there a way to remove it at runtime? I tried the attributes collection in the PropertyInfo. That doesn't work Or if I could add the XmlIgnore at runtime. That would work also. But, the attributes collection doesn't allow me to do such a thing
-------------------------------------------------------- 1 line of code equals many bugs. So don't write any!! My mad coder blog