C#C
C#17mo ago
Vasoli

Marshalling bool

In my C++ file I have method which have Bool parameter. For Linux I need to have UnmanagedType.VariantBool marshaller and for windows (for some reason) UnmanagedType.Bool.

Is there a way to make custom marshaller what will just select and call any of those 2 marshallers based on RuntimeInformation.IsOSPlatform?
Was this page helpful?