Page 1 of 1

XmlSerializer cannot convert from 'decimal' to 'bool' in Restful Service Client

Posted: Mon Jan 16, 2017 12:40 am
by horst_2008
Severity Code Description Project File Line
Error CS1503 Argument 1: cannot convert from 'decimal' to 'bool' D:\Projects\Test\CsToHtml5Test\Levantis\obj\Release\TempSGen\sa_032c1e06d5e44353a623a10c719859a6.cs 102

Code line 102 in cs-file:
WriteElementStringRaw(@"CSHT_IncomeDecimal", @"", System.Xml.XmlConvert.ToString((global::System.Decimal)((global::System.Decimal)o.@CSHT_IncomeDecimal)));

Will decimal be supported for Web API in future?

Re: XmlSerializer cannot convert from 'decimal' to 'bool' in Restful Service Client

Posted: Wed Jan 18, 2017 7:36 am
by JS-Support @Userware
horst_2008 wrote:Will decimal be supported for Web API in future?


Hi and welcome to the forums.

Yes, decimal support in Web API is expected in 2017. In the meantime, it is recommended to replace it with a type such as "double". If you need the feature quickly, please contact us at sales@cshtml5.com for a quote and precise schedule.

Thanks.
Regards,
JS-Support