You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Make optional SafeHandle parameters accept null #129
While the .NET interop layer may not permit null for SafeHandle parameters, we can certainly support it by making the extern method private and exposing a wrapper to it that checks for null SafeHandle args and does the right thing.
When the project langversion is >= 8, could you also put #nullable enable or at least #nullable annotations in the file or around the parameter declaration and use SafeHandle? as the parameter type so that IntelliSense shows me that nulls are anticipated?
Activity
jnm2 commentedon Feb 18, 2021
When the project langversion is >= 8, could you also put
#nullable enableor at least#nullable annotationsin the file or around the parameter declaration and useSafeHandle?as the parameter type so that IntelliSense shows me that nulls are anticipated?AArnott commentedon Feb 18, 2021
Joseph Musser (@jnm2) yes, I have that in mind to eventually do. I filed an issue to track.
Make SafeHandle parameters accept null
Merge pull request #129 from AArnott/updates