Marshaling Support in the .NET Compact Framework
[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]
Interop marshaling, performed by the common language runtime, controls how data is passed in method arguments and return values between managed and unmanaged memory.
The .NET Compact Framework supports the MarshalAsAttribute class.
Note that the StringBuilder class is an exception to the rule that reference types passed by value are passed as input parameters by default. They are always passed as input/output parameters.
In This Section
Describes marshaling capabilities in the .NET Compact Framework and how to log interop marshaling on the device.
Marshaling Delegates as Function Pointers
Shows examples of how a managed delegate can be marshaled to a function pointer in unmanaged code.
Marshaling Structures in the .NET Compact Framework
Describes how to encapsulate strings and arrays in structures for efficient marshaling.
Lists the managed and unmanaged types that can be marshaled with the .NET Compact Framework.
.NET Compact Framework Blittable Types
Lists data types in the .NET Compact Framework that do not require conversions by the marshaler.