把 ref 和 out 关键字说透 (三)
ode size 5 (0x5)
.maxstack 8
IL_0000: nop
IL_0001: ldnull
IL_0002: starg.s a
IL_0004: ret
}
// end of method Program::Test1
.method
private
hidebysig
static
void
Test2 (
object
& a
) cil managed
{
// Method begins at RVA 0x2059
// Code size 5 (0x5)
.maxstack 8
IL_0000: nop
IL_0001: ldarg.0
//多了这行代码
IL_0002: ldnull
IL_0003: stind.
ref
IL_0004: ret
}
// end of method Program::Test2