-
Notifications
You must be signed in to change notification settings - Fork 35
M_CodeJam_Code_DisposedIf__1
Andrew Koryavchenko edited this page Jun 17, 2018
·
7 revisions
Assertion for object disposal
Namespace: CodeJam
Assembly: CodeJam (in CodeJam.dll) Version: 2.1.0.0
C#
public static void DisposedIf<TDisposable>(
bool disposed,
TDisposable thisReference
)
where TDisposable : IDisposable
VB
Public Shared Sub DisposedIf(Of TDisposable As IDisposable) (
disposed As Boolean,
thisReference As TDisposable
)
F#
static member DisposedIf :
disposed : bool *
thisReference : 'TDisposable -> unit when 'TDisposable : IDisposable
- disposed
- Type: System.Boolean
Dispose condition. - thisReference
- Type: TDisposable
The this reference.
- TDisposable
- The type of the disposable.