摘要: 线程堆栈:简称栈 Stack托管堆: 简称堆 Heap使用.Net框架开发程序的时候,我们无需关心内存分配问题,因为有GC这个大管家给我们料理一切。如果我们写出如下两段代码:1 代码段1:2 3 public int AddFive(int pValue)4 {5 int result;6 result = pValue + 5;7 return result;8 } 1 代码段2: 2 3 public class MyInt 4 { 5 public int MyValue; 6 } 7 8 public MyInt AddFive(int pValue) 9 {10 MyInt re.. 阅读全文
posted @ 2013-12-10 10:47 IT少年 阅读(8809) 评论(0) 推荐(8) 编辑