SizeOf Method
TOC
Collapse the table of content
Expand the table of content

Marshal.SizeOf Method

 

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

Namespace:   System.Runtime.InteropServices
Assembly:  mscorlib (in mscorlib.dll)

NameDescription
System_CAPS_pubmethodSystem_CAPS_staticSizeOf(Object)

Returns the unmanaged size of an object in bytes.

System_CAPS_pubmethodSystem_CAPS_staticSizeOf(Type)

Returns the size of an unmanaged type in bytes.

System_CAPS_pubmethodSystem_CAPS_staticSizeOf<T>()

[Supported in the .NET Framework 4.5.1 and later versions]

Returns the size of an unmanaged type in bytes.

System_CAPS_pubmethodSystem_CAPS_staticSizeOf<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.

Return to top
Show:
© 2016 Microsoft