Returns a value indicating whether this stack has been disposed.
Adds a value and associated disposal callback as a resource to the stack.
Adds a callback to be invoked when the stack is disposed.
Disposes each resource in the stack in the reverse order that they were added.
Move all resources out of this stack and into a new DisposableStack, and marks this stack as disposed.
DisposableStack
Adds a disposable resource to the stack, returning the resource.