2007年7月12日
摘要: 参考:Applied Microsoft .NET Framework Programming by Jeffrey RichterCLR Via C#, Second Edition, by Jeffrey Richter先回忆一下装箱和拆箱,看看下面这段代码有多少次装箱操作:public static void Main(){ Int32 v = 5; Object o = v;... 阅读全文
posted @ 2007-07-12 22:02 宝气狗 阅读(251) 评论(0) 推荐(0)
摘要: 参考:CLR Via C#, Second Edition, by Jeffrey RichterCLR自动排列类型实例中的字段以提高性能(如将相关性引用聚合在一起)。但我们仍然可以手动指定排列顺序:[StructLayout(LayoutKind.Auto)]自动排列[StructLayout(LayoutKind.Sequential)]保留我们的字段布局[StructLayout(Layou... 阅读全文
posted @ 2007-07-12 14:21 宝气狗 阅读(237) 评论(0) 推荐(0)
摘要: MSIL Instruction Set Base Instructions Instruction Description ... 阅读全文
posted @ 2007-07-12 11:19 宝气狗 阅读(379) 评论(0) 推荐(0)