Export (0) Print
Expand All

Marshal.SizeOf Method

Returns the unmanaged size, in bytes, of a class.

This member is overloaded. For complete information about this member, including syntax, usage, and examples, click a name in the overload list.

  Name Description
Public method Static member SizeOf<T>() [Supported in the .NET Framework 4.5.1 and later versions] Returns the size of an unmanaged type in bytes.
Public method Static member SizeOf<T>(T) [Supported in the .NET Framework 4.5.1 and later versions] Returns the unmanaged size of an object of a specified type in bytes.
Public method Static member SizeOf(Object) Returns the unmanaged size of an object in bytes.
Public method Static member SizeOf(Type) Returns the size of an unmanaged type in bytes.
Top
Show:
© 2014 Microsoft