DisposableUtil
Description
Provides static helper method for dealing with IDisposables.
Public / Methods
DisposeAll
3 overloads
Disposes all given objects and sets the corresponding array elements to null
.
The variable that holds the given disposables in must be cleared to null
after this method has returned in order to guarantee correct resource management.
Disposes all given objects and sets the corresponding array elements to null
.
The variable that holds the given disposables in must be cleared to null
after this method has returned in order to guarantee correct resource management.
Disposes all given objects.
The variable that holds the given disposables in must be cleared to null
after this method has returned in order to guarantee correct resource management.
DisposeOnExit
Disposes the given object when the enclosing process exits.
This method is intended to be used in very specific cases and should not be used commonly.
IsDisposed
Tests if the given object is no longer valid (i.e. it has left the LifecycleState.Initialized state).