Disposable Methods |
The Disposable type exposes the following members.
Name | Description | |
---|---|---|
Dispose | If the specified object implements IDisposable, it will be disposed, else nothing is done. | |
DisposeAll | Calls Dispose(Object) for all objects in the list. | |
ReportNotDisposedObject | Handle reporting of a not disposed object. Using this pattern is a good practice to avoid code where disposable objects get never disposed. Calling this method will raise the NotDisposedObject event if any event handler is attached; otherwise it will throw an InvalidOperationException if a debugger is attached. If the application does not run in a debugger and no event handler is attached, calling this method does nothing. |