The unmanaged and managed sizes of an object can differ.
sizeof() operator applies only to value types and not reference types.
Marshal.SizeOf(object o) - where "o" could be a reference gives the size of the unmanaged object.
The size calculation of a given class that contains character type is depending on the CharSet set for this class.
-obislavu-
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.