LibraryImport and array of bool values #101494
-
Hi, I understand that there's an obligation to specify
That's fine and dandy.
This, which is nice for supported array types (like
And this doesn't work either:
So do we have to write a custom marshaller or is there a simpler way to pass the way we want to marshal the bools? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
You can use |
Beta Was this translation helpful? Give feedback.
You can use
[MarshalAs(UnmanagedType.LPArray, ArraySubType = UnmanagedType.Bool)]
for arrays of bools.