Please consider the following Amount value type property which is marked as a nullable XmlElement:
[XmlElement(IsNullable=true)] public double? Amount { ge
There is also an alternative to get
instead of
Use
[XmlElement("amount", IsNullable = false)] public string SerializableAmount { get { return this.Amount == null ? "" : this.Amount.ToString(); } set { this.Amount = Convert.ToDouble(value); } }