.NET FrameWork 小记 (Value Types,Refrence Types, difference)
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