代码改变世界

CLR via C# - 1. Type fundamentals

2012-12-09 21:19  小郝(Kaibo Hao)  阅读(180)  评论(0编辑  收藏  举报

The address structure of the type object and type

Note:

  1.  Every object on the heap requires some additional members—called  the type object pointer and the sync block index—used by the CLR to manage the  object .

 

  1.  System.Object’s GetType method simply returns the address stored in the specified object’s type object pointer member . In other words, the GetType method returns a pointer to an object’s type object, and this is how you can determine the true type of any object in the system (including type objects) .