I have the following issue:
I have an integer property and would like it not to be written to XML during serialization if it is zero and only written if it has the value different from zero (one, two etc.) Is it possible to do somehow?
[XmlAttribute]
public int MyIntProperty;