-
Notifications
You must be signed in to change notification settings - Fork 35
T_CodeJam_Disposable
Andrew Koryavchenko edited this page Jun 17, 2018
·
8 revisions
Helper methods for IDisposable
System.Object
CodeJam.Disposable
Namespace: CodeJam
Assembly: CodeJam (in CodeJam.dll) Version: 2.1.0.0
C#
public static class Disposable
VB
<ExtensionAttribute>
Public NotInheritable Class Disposable
F#
[<AbstractClassAttribute>]
[<SealedAttribute>]
[<ExtensionAttribute>]
type Disposable = class end
The Disposable type exposes the following members.
Name | Description | |
---|---|---|
Create(Action) | Creates IDisposable instance that calls disposeAction on disposing. | |
Create(T)(Action(T), T) | Creates IDisposable instance that calls disposeAction on disposing. | |
Merge(IEnumerable(IDisposable)) | Combine multiple IDisposable instances into single one. | |
Merge(IDisposable[]) | Combine multiple IDisposable instances into single one. |
Name | Description | |
---|---|---|
Empty | IDisposable instance without any code in Dispose(). |