MarshalSizeOf Method (Object) |
Returns the unmanaged size of an object in bytes.
Namespace: System.Runtime.InteropServicesAssembly: mscorlib (in mscorlib.dll) Version: 4.0.0.0
Syntax public static int SizeOf(
Object structure
)
Parameters
- structure
- Type: SystemObject
The object whose size is to be returned.
Return Value
Type:
Int32The size of the specified object in unmanaged code.
Exceptions See Also