Method Close
Close(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 Close(params IDisposable[] objects)
Parameters
Type | Name | Description |
---|---|---|
IDisposable[] | objects | Objects to call |
Close(IEnumerable<IDisposable>)
Disposes all given
Declaration
public static void Close(IEnumerable<IDisposable> objects)
Parameters
Type | Name | Description |
---|---|---|
IEnumerable<IDisposable> | objects |