i ^= (j ^= (i ^= j))的IL代码

 

  IL_0000:  nop
  IL_0001:  ldc.i4.1
  IL_0002:  stloc.0
  IL_0003:  ldc.i4.5
  IL_0004:  stloc.1
  IL_0005:  ldloc.0
  IL_0006:  ldloc.1
  IL_0007:  ldloc.0
  IL_0008:  ldloc.1
  IL_0009:  xor
  IL_000a:  dup
  IL_000b:  stloc.0
  IL_000c:  xor
  IL_000d:  dup
  IL_000e:  stloc.1
  IL_000f:  xor
  IL_0010:  stloc.0
  IL_0011:  ret

你可能感兴趣的:(c)