.NET FrameWork 小记 (Value Types,Refrence Types, difference)

来源:互联网 发布:xp设置网络打印机共享 编辑:程序博客网 时间:2024/05/22 00:50
two golden rules:

A Reference Type always goes on the Heap .


Value Types and Pointers always go where they were declared.(stack---pointer--heap)



http://www.c-sharpcorner.com/UploadFile/rmcochran/csharp_memory01122006130034PM/csharp_memory.aspx