构造函数的代码膨胀问题
摘要:
1. 类1 public class A { private Int32 x = 15; }查看其默认的无参构造函数形成的IL Code:.method public hidebysig specialname rtspecialname instance void .ctor() cil managed{ // Code size 16 (0x10) .maxstack 8 IL_0000: ldarg.0 IL_0001: ldc.i4.s 15 IL_0003: stfld int32 ConsoleApplication9.... 阅读全文
posted @ 2013-02-28 23:14 Gcam 阅读(186) 评论(0) 推荐(0) 编辑