Marshal.SizeOf Method
.NET Framework 1.1
Returns the unmanaged size, in bytes, of a class using Marshal.
Overload List
Returns the unmanaged size of an object in bytes.
Supported by the .NET Compact Framework.
[Visual Basic] Overloads Public Shared Function SizeOf(Object) As Integer
[C#] public static int SizeOf(object);
[C++] public: static int SizeOf(Object*);
[JScript] public static function SizeOf(Object) : int;
Returns the size of an unmanaged type in bytes.
Supported by the .NET Compact Framework.
[Visual Basic] Overloads Public Shared Function SizeOf(Type) As Integer
[C#] public static int SizeOf(Type);
[C++] public: static int SizeOf(Type*);
[JScript] public static function SizeOf(Type) : int;
See Also
Marshal Class | Marshal Members | System.Runtime.InteropServices Namespace