Disposable abstracts over different kinds of resources.
A resource that has to be released after use, for example a file handle or a database connection.
a, releasing the resources it manages. Calling this function
a second time (or more) has no effect.
a has been disposed, meaning that
dispose has been called
at least once.
disposable and disposes
disposable afterwards. Returns
the result of
action, unless disposing