pinvoke icon indicating copy to clipboard operation
pinvoke copied to clipboard

Use nint type

Open zgabi opened this issue 4 years ago • 0 comments

In the documentation you wrote that for example the SIZE_T should be (U)IntPtr in the C# code, which is understandable, but looks strange, for example: Kernel32.CopyMemory(dest, source, (IntPtr)length);

Please consider to add net5 target next to the existing ones, and use native integer types (nint, nuint) where the parameter is not a pointer. (For example by creating overlads to those methods)

zgabi avatar Jan 15 '21 13:01 zgabi