We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
GC.KeepAlive(this)
this cannot be disposed during execution of one of its methods. Dispose is an instance member. Call is unnecessary and will just slightly hurt perf
this
The text was updated successfully, but these errors were encountered:
These articles say something different:
An object can become eligible for collection during execution of a method on that very object.
Sorry, something went wrong.
Yes, it is useful in a finalizer. But this is in Dispose, where it is useless
Dispose
Put it in the actual finalizer, not the top level Dispose method
No branches or pull requests
this
cannot be disposed during execution of one of its methods. Dispose is an instance member. Call is unnecessary and will just slightly hurt perfThe text was updated successfully, but these errors were encountered: