Disposes multiple objects while catching and ignoring any exceptions.
This method is useful when you want to ensure all objects are disposed
even if some of them throw exceptions during disposal. Exceptions are
suppressed to prevent them from interrupting the disposal process.
Parameters
...disposables: DisposableItem[]
The objects to dispose of. Exceptions during disposal are caught and ignored.
Returns void
Example
// Dispose all objects, even if some throw exceptions dispose.withoutException(resource1, faultyResource, resource3); // All objects are disposed, even if faultyResource throws an exception
Disposes multiple objects while catching and ignoring any exceptions.
This method is useful when you want to ensure all objects are disposed even if some of them throw exceptions during disposal. Exceptions are suppressed to prevent them from interrupting the disposal process.