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

Please report bugs here. If you are unsure whether something is a bug or an expected behavior, please post it on the "Technical Support" forum instead, and wait for a moderator to handle/move the post.
horst_2008
Posts: 1
Joined: Mon Jan 16, 2017 12:25 am

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

Postby horst_2008 » Mon Jan 16, 2017 12:40 am

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?

JS-Support
Site Admin
Posts: 734
Joined: Tue Apr 08, 2014 3:42 pm

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

Postby JS-Support » Wed Jan 18, 2017 7:36 am

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


Return to “Bug Reports”

Who is online

Users browsing this forum: No registered users and 1 guest