Marshal Class |
Namespace: System.Runtime.InteropServices
public static class Marshal
The Marshal type exposes the following members.
Name | Description | |
---|---|---|
OffsetOf | Returns the field offset of the unmanaged form of the managed class. | |
SizeOf(Object) | Returns the unmanaged size of an object in bytes. | |
SizeOf(Type) | Returns the size of an unmanaged type in bytes. |
Name | Description | |
---|---|---|
SystemDefaultCharSize | Represents the default character size on the system; the default is 2 for Unicode systems and 1 for ANSI systems. This field is read-only. | |
SystemMaxDBCSCharSize | Represents the maximum size of a double byte character set (DBCS) size, in bytes, for the current operating system. This field is read-only. |