Hi,
Here is one example of a missing condition when decompiling.
As you can see, there is an IF missing...
Original code
The result :
Thanks
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
Console.WriteLine(
"test0"
)
If
Not
bTest1
Then
Console.WriteLine(
"test1"
)
End
If
If
Not
bTest2
Then
Console.WriteLine(
"test2"
)
End
If
End
If
Console.ReadKey()
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;
Console.WriteLine(
"test0"
);
flag = bTest1 == 0;
if
(flag)
{
Console.WriteLine(
"test1"
);
}
flag = bTest2 == 0;
if
(flag)
{
Console.WriteLine(
"test2"
);
}
Console.ReadKey();
}
Thanks