Where the 'Type' of a reference value is stored in memory?
问题 As the reference values are stored in the heap as a data; where do the type information of any reference value is stored? If there are a couple of instances of class Artist; when they are stored in the heap how the .Net tags those memory blocks as type of Artist? thanks! 回答1: void M() { Artist a = new Artist(); } When the method is called, a new stack frame is expanded, CLR has some preparation code before the first statement of the method is executed, like a prolegomenon . During this period