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
Currently, projections for imported resources implement IDisposable, but they do not provide a finalizer. This means that if the user forgets to manually dispose the resource, its [resource-drop] function is never called.
I believe this is incorrect, and the resource should provide a finalizer that calls the resource's [resource-drop] function.
Nevertheless, it might be helpful to mention in the readme that resources must be disposed/dropped manually.
Perhaps recommending to enable the corresponding warnings (CA2000, CA1001, CA2213)?
Feel free to close this issue if this is not the correct repository for these suggestions.
Currently, projections for imported resources implement
IDisposable
, but they do not provide afinalizer
. This means that if the user forgets to manually dispose the resource, its[resource-drop]
function is never called.I believe this is incorrect, and the resource should provide a finalizer that calls the resource's
[resource-drop]
function.Version:
The text was updated successfully, but these errors were encountered: