Comments
Sort by recent activity
@switchblade Why don't you test my code?
"The IL is in the static constructor (.cctor method). That is where the static variables are initialised."
So?
In my original application, IL will like: ldc.i4.5
stsfld bbb
ldsfld bbb ===>this time bbb=5
ldc.i4.2
add
stsfld aaa
But Reflector change the filed order, so if I compile the decompiled source , IL will like: ldsfld bbb ==> this time bbb=0
ldc.i4.2
add
stsfld aaa
ldc.i4.5
stsfld bbb
Can't you find the difference?
So, there is a bug!!! / comments
@switchblade Why don't you test my code?
"The IL is in the static constructor (.cctor method). That is where the static variables are initialised."
So?
In my original application, IL will like:ldc....
[image]
in my program: aaa=7,bbb=5 [image]
but in Reflector code: aaa=2,bbb=5 / comments
in my program: aaa=7,bbb=5
but in Reflector code: aaa=2,bbb=5
nobody? / comments
nobody?
There is no relation with IL!
When I write this in Visual Studio:
class Demo
{
public static int bbb = 5;
public static int aaa = bbb + 2;
}
Then put the output to Reflector. it will like this:
internal class Demo
{
// Fields
public static int aaa = (bbb + 2);
public static int bbb = 5;
}
So, when I Export Assembly Source Code, there are mistakes!
Reflector should keep the order, or else there are different values!!! / comments
There is no relation with IL!
When I write this in Visual Studio:
class Demo
{
public static int bbb = 5;
public static int aaa = bbb + 2;
}
Then put the output to Reflector. it will like this:
int...