Handle structs incorrectly using nint
field instead of IntPtr
#312
Labels
bug
Something isn't working
nint
field instead of IntPtr
#312
Actual behavior
A recent regression has led to typedef structs that represent handles using
nint
everywhere instead of the more opaqueIntPtr
type.Expected behavior
Use
IntPtr
for opaque, pointer-sized value (e.g.IntPtr handle
)Reserve
nint
for integers that code is expected to manipulate and interpret (e.g.nint Length
)Repro steps
NativeMethods.txt
content:NativeMethods.json
content (if present):N/A
Any of your own code that should be shared?
Context
netstandard2.0
]LangVersion
(if explicitly set by project): [e.g.9
]The text was updated successfully, but these errors were encountered: