Hi!
I've recently used WCF to consume a REST API. I used an entity class to serialize REST XML Reponse, here's the part I have a problem:
<grid-cell-size type="decimal" nil="true"/>
and in my C# class:
[XmlElement("grid-cell-size")]
public decimal? GridCellSize { get; set; }
but the result is Input string was not in a correct format. error message.
How can I change my C# code to accept null values from XML?