Represents a type which can release resources, such as event listening or a timer.
Online Documentation
Creates a new disposable that calls the provided function on dispose.
Dispose this object.