typeof is decompiled incorrectly

4 posts, 0 answers
  1. Testo
    Testo avatar
    10 posts
    Member since:
    May 2009

    Posted 20 Jun 2011 Link to this post

    instead of Type.GetTypeFromHandle(int)

    it should be decompiled as 

    typeof(int)
  2. Tsviatko Yovtchev
    Admin
    Tsviatko Yovtchev avatar
    408 posts

    Posted 27 Jun 2011 Link to this post

    Hi Testo,

     Thanks for letting us know about that. It does look wrong. Can we get the MSIL that results in generating this code?

    Greetings,
    Tsviatko Yovtchev
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get now >>

  3. DevCraft banner
  4. Testo
    Testo avatar
    10 posts
    Member since:
    May 2009

    Posted 28 Jun 2011 Link to this post

    This IL is inside  a switch block

    The following one doesn't work
      IL_00a7:  ldtoken    [mscorlib]System.Int32
      IL_00ac:  call       class [mscorlib]System.Type [mscorlib]System.Type::GetTypeFromHandle(valuetype [mscorlib]System.RuntimeTypeHandle)
      IL_00b1:  stloc.s    V_5
  5. Yordan Dikov
    Admin
    Yordan Dikov avatar
    69 posts

    Posted 06 Jul 2011 Link to this post

    Hi Testo,

     Typeof statements seem to decompile fine on our side. Please, try the latest version of JustDecompile and check out whether the bug still exists at your side. If that's the case it'd be really nice if you could send over  the IL of the complete method where that happens or the binary of the assembly that contains that method if possible. Rather unfortunately, that's the only way for us to investigate complex interaction issues.

    Regards,
    Yordan Dikov
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get now >>

Back to Top