IDisposable object¶
The IDisposable object is a contract for objects that hold resources — such as event listeners or subscriptions — that must be explicitly released. Calling dispose() cleans up those resources.
The IDisposable object is a contract for objects that hold resources — such as event listeners or subscriptions — that must be explicitly released. Calling dispose() cleans up those resources.