//
archives

custom marshaling

This tag is associated with 2 posts

Understanding Custom Marshaling Part 2

1. Introduction. 1.1 This article is a continuation of Understanding Custom Marshaling Part 1. 1.2 In part 1, we learned how to code custom marshaling for the purpose of passing an object (a managed string) from managed code to unmanaged. 1.3 Here in part 2, we study how custom marshaling is done in the other … Continue reading

Understanding Custom Marshaling Part 1

1. Introduction. 1.1 Custom marshaling is a fascinating .NET feature. 1.2 As is the case for standard interop marshaling, it is used to transform data of a managed type into equivalent data of an unmanaged type for the purpose of parameter passing to/from an unmanaged function. 1.3 This article will demonstrate how custom marshaling can … Continue reading