This is a migrated thread and some comments may be shown as answers.

Wrong decompilation output

2 Answers 47 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
bartek
Top achievements
Rank 1
bartek asked on 21 Aug 2014, 11:02 AM
Hi, sample code:

decimal value = 1;
Console.WriteLine("value1: " + value);
value++;
Console.WriteLine("value2: " + value);

decompilation  result is:

decimal value = new decimal(1);
Console.WriteLine(string.Concat("value1: ", value));
value = value++;
Console.WriteLine(string.Concat("value2: ", value));


Cheers 

2 Answers, 1 is accepted

Sort by
0
bartek
Top achievements
Rank 1
answered on 21 Aug 2014, 11:43 AM
One more case:

Source:
bool foo = false;
bool bar = false;
foo = bar = false;

Result:
bool foo = false;
bool bar = false;
int num = 0;
bar = (bool)num;
foo = (bool)num;
0
Zdravko
Telerik team
answered on 26 Aug 2014, 03:31 PM
Hello Bartek,

Thanks a lot for reporting these bugs.
We will log them to our product backlog for further consideration and will do our best to improve the decompilation in such scenarios.

Regards,
Zdravko
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
General Discussions
Asked by
bartek
Top achievements
Rank 1
Answers by
bartek
Top achievements
Rank 1
Zdravko
Telerik team
Share this question
or