Skip to content

What's the best way to declare an empty SafeHandle? #516

Answered by jnm2
HavenDV asked this question in Q&A
Discussion options

You must be logged in to vote

I believe you can pass null to the friendly overload which will handle it correctly. (Unlike how traditional p/invoke has worked.)

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@HavenDV
Comment options

@AArnott
Comment options

Answer selected by HavenDV
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants