Is it possible to add attributes at runtime or to change the value of an attribute at runtime?
You can't. One workaround might be to generate a derived class at runtime and adding the attribute, although this is probably bit of an overkill.