110,528
社区成员
发帖
与我相关
我的任务
分享
static void Main(string[] args)
{
int x = 1;
Console.WriteLine("Result: {0}", x+++--x);
Console.ReadLine();
}
.method private hidebysig static void Main(string[] args) cil managed
{
.entrypoint
// 代码大小 35 (0x23)
.maxstack 4
.locals init (int32 V_0)
IL_0000: ldc.i4.1
IL_0001: stloc.0
IL_0002: ldstr "Result: {0}"
IL_0007: ldloc.0
IL_0008: dup
IL_0009: ldc.i4.1
IL_000a: add
IL_000b: stloc.0
IL_000c: ldloc.0
IL_000d: ldc.i4.1
IL_000e: sub
IL_000f: dup
IL_0010: stloc.0
IL_0011: add
IL_0012: box [mscorlib]System.Int32
IL_0017: call void [mscorlib]System.Console::WriteLine(string,
object)
IL_001c: call string [mscorlib]System.Console::ReadLine()
IL_0021: pop
IL_0022: ret
} // end of method Program::Main