When I inherit from a class and serialize the new class I get all all properties.
How can I prevent that?
I have no control over the class that I inherit from. So I can\'t add
One solution is to use the [Nonserialized] attribute on PropertyA. Note that with this attribute, PropertyA will never be serialized, including when you serialize an instance of class A. Is that acceptable?