CLR支持引用类型与值类型
引用类型 : 从托管堆上分配
值类型: 分配在线程的堆栈上
对于引用类型:
c#的new操作符返回ideas就是对象位于托管堆中的内存地址
该地址指向对象占用的数据位
(1):内存必须从托管堆中分配
(2) : 没个托管堆中分配的对象都有一些与之关联的额外附加成员必须被初始化
(3):从托管堆中分配对象可能会导致垃圾收集