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
Can be an explicit implementation. All disposing has to do is call UpatchSelf.
This would be useful when working with the disposable pattern, for example when making a plugin that can be hot-reloaded. Currently you have to do this:
Sounds good. I added a hidden implementation of Dispose now, check 511a1fa
Or should the Dispose be public? I think it's more reasonable to keep it hidden so that you can still use using and other IDisposable helpers while still encouraging users to use UnpatchSelf for common cases.
Can be an explicit implementation. All disposing has to do is call UpatchSelf.
This would be useful when working with the disposable pattern, for example when making a plugin that can be hot-reloaded. Currently you have to do this:
when it could be just this:
You could use it inside
using
as well but that's a pretty uncommon case.Example of the disposable pattern to make a plugin reloadable:
The text was updated successfully, but these errors were encountered: