Method Dispose
Dispose(IDisposable[])
Disposes all given null
; they are
ignored. After everything is closed, the method either
throws the first exception it hit while closing, or
completes normally if there were no exceptions.
Declaration
public static void Dispose(params IDisposable[] objects)
Parameters
Type | Name | Description |
---|---|---|
IDisposable[] | objects | Objects to call |
Dispose(IEnumerable<IDisposable>)
Disposes all given
Declaration
public static void Dispose(IEnumerable<IDisposable> objects)
Parameters
Type | Name | Description |
---|---|---|
IEnumerable<IDisposable> | objects |