Wrong decompilation output

3 posts, 0 answers
  1. bartek
    bartek avatar
    2 posts
    Member since:
    Aug 2014

    Posted 21 Aug 2014 Link to this post

    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. bartek
    bartek avatar
    2 posts
    Member since:
    Aug 2014

    Posted 21 Aug 2014 in reply to bartek Link to this post

    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;
  3. DevCraft banner
  4. Zdravko
    Admin
    Zdravko avatar
    657 posts

    Posted 26 Aug 2014 Link to this post

    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.

     
Back to Top