摘要:
代码看值类型和引用类型的一个区别 public class MyClass1 { } public struct Mystruct { } public class ILDemo { MyClass1 Mc = new MyClass1(); Mystruct Ms = new Mystruct(); }.method public hidebysig specialname rtspecialname instance void .ctor() cil managed{ // 代码大小 31 (0x1f) .maxstack 8 IL_0000: ldarg.0 IL_0001: newob 阅读全文
摘要:
.assembly 用于指定编译目标或则外部加载库(.assembly只加载实际用到的目标或者库).Ctor 指令表示构造函数.Ver表示引用版本.publicKeytoKen公钥.Hash algorithm 表示现实安全性使用的哈希算法.module程序集指令表明定义的模块的元数据,指当前模块.imagebase 为影像基地址.file alignment为文件对其数值.subsystem表示连接系统类型(运行方式).corflags为设置运行库头文件标志.class 表示是一个类extends继承指向auto表明加载的时候内存是有clr决定ansi指示没有运行在clr运行库上面的代码be 阅读全文