.net - Where's the ValueType stored when CLR initialize the data structure to store them -
i know value type instances stored in stack , reference type instances stored in heap. but, after clr ensure assemblies define type have loaded, create data structures store type object, reference type object stored in heap, where's value type objects stored?
the type
objects different types reference types, i.e. type
class, stored on heap.
note value types stored on stack if local variables in method. if members of class, stored on heap part of instance of class.
Comments
Post a Comment