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

two golden rules:

  1. A Reference Type always goes on the Heap .

  2. 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

    posted @ 2011-07-11 15:37  码码浒浒  阅读(268)  评论(0)    收藏  举报