Marshalling arrays

suggest change

Arrays of simple type

[DllImport("Example.dll")]
static extern void SetArray(
    [MarshalAs(UnmanagedType.LPArray, SizeConst = 128)]
    byte[] data);

Arrays of string

[DllImport("Example.dll")]
static extern void SetStrArray(string[] textLines);

Feedback about page:

Feedback:
Optional: your email if you want me to get back to you:



Table Of Contents