//public int? LimitQuantity { get; set; } error: Input string was not in a correct format.
//Below is correct!
[XmlElement("LimitQuantity"), JsonProperty("LimitQuantity")]
public string _LimitQuantity { get; set; }
[XmlIgnore, JsonIgnore]
public int? LimitQuantity
{
get
{
if (string.IsNullOrEmpty(_LimitQuantity))
return null;
return int.Parse(_LimitQuantity);
}
set { }
}
Hi Author,
I found a small bug!
Best regards!