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.
IsDisposed
Tests if the given object is no longer valid (i.e. it has left the LifecycleState.Initialized state).