If missing when decompiling

2 posts, 0 answers
  1. jp
    jp avatar
    1 posts
    Member since:
    Sep 2010

    Posted 02 Dec 2011 Link to this post


    Here is one example of a missing condition when decompiling.

    As you can see, there is an IF missing...

    Original code
    Sub Main()
        Dim arr1(-1) As String
        Dim arr2(-1) As String
        Dim bTest1 As Boolean = arr1.Any()
        Dim bTest2 As Boolean = arr2.Any()
        If Not bTest1 OrElse Not bTest2 Then
            If Not bTest1 Then
            End If
            If Not bTest2 Then
            End If
        End If
    End Sub

    The result :

    public static void Main()
        string[] arr1 = new string[0];
        string[] arr2 = new string[0];
        bool bTest1 = arr1.Any<string>();
        bool bTest2 = arr2.Any<string>();
        bool flag = !bTest1 || !bTest2;
        flag = bTest1 == 0;
        if (flag)
        flag = bTest2 == 0;
        if (flag)


  2. Yordan Dikov
    Yordan Dikov avatar
    69 posts

    Posted 07 Dec 2011 Link to this post

    Hi Jp,

     Thank you for the example. We're aware that we have problems in cases like this and we're currently working hard on handling them better. We'll definitely take into account your example when testing our solution.

    Yordan Dikov
    the Telerik team

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

  3. DevCraft banner
Back to Top