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
The source generator currently requires a non-abstract subclass of SafeHandle - even for by-value parameters. We require a concrete subclass to instantiate when handling out / ref, but shouldn't need it for by-value.
Declaring a P/Invoke using an abstract base class or SafeHandle itself is a common use case in runtime libraries - e.g: Interop.Read.cs
The source generator currently requires a non-abstract subclass of
SafeHandle
- even for by-value parameters. We require a concrete subclass to instantiate when handlingout
/ref
, but shouldn't need it for by-value.Declaring a P/Invoke using an abstract base class or
SafeHandle
itself is a common use case in runtime libraries - e.g:Interop.Read.cs
Interop.Properties.cs
cc @AaronRobinsonMSFT @jkoritzinsky
The text was updated successfully, but these errors were encountered: