Is it possible to programmatically set that you want to exclude a property from serialization?
Example:
If you're using XML serialization, use the [XmlIgnore] attribute. Otherwise, how to ignore a particular property is defined by the serializer itself.
[XmlIgnore]