摘要:
通常swap(a,b),都是用中间变量public static void Swap1(ref int a, ref int b) { int temp = a; a = b; b = temp; }生成的IL如下(去除ref) .maxstack 1 .locals init ( [0] int32 temp) L_0000: ldarg.0 L_0001: stloc.0 L_0002: ldarg.1 L_0003: starg.s a L... 阅读全文
posted @ 2012-08-07 21:36
primeli
阅读(4728)
评论(0)
推荐(0)

浙公网安备 33010602011771号