Click or drag to resize
MarshalSizeOf Method (Object)
Returns the unmanaged size of an object in bytes.

Namespace: System.Runtime.InteropServices
Assembly: mscorlib (in mscorlib.dll) Version: 4.0.0.0
Syntax
C#
public static int SizeOf(
	Object structure
)

Parameters

structure
Type: SystemObject
The object whose size is to be returned.

Return Value

Type: Int32
The size of the specified object in unmanaged code.
Exceptions
ExceptionCondition
ArgumentNullExceptionThe structure parameter is null.
See Also