.NET Compact Framework Blittable Types

A type is considered blittable if it has a common representation in both managed and unmanaged memory, thereby requiring no special handling by the marshaler to convert to unmanaged or managed code.

Blittable Types in Both Frameworks

The following types, defined in the System namespace, are blittable types in both the full .NET Framework and .NET Compact Framework:

The following complex types are also blittable:

  • One-dimensional arrays of blittable types.

  • Formatted value types that contain only blittable types. Because all structures and classes always have sequential layout in the .NET Compact Framework, the managed value type has the same memory layout as the unmanaged structure.

Blittable Types Only in the .NET Compact Framework

The .NET Compact Framework provides the following blittable types because of their implementation in the common language runtime:

See Also

Other Resources

Marshaling Support in the .NET Compact Framework