Skip to content

M_CodeJam_Code_DisposedIf__1

Andrew Koryavchenko edited this page Jun 17, 2018 · 7 revisions

Code.DisposedIf(TDisposable) Method (Boolean, TDisposable)

Assertion for object disposal

Namespace: CodeJam
Assembly: CodeJam (in CodeJam.dll) Version: 2.1.0.0

Syntax

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

Parameters

 

disposed
Type: System.Boolean
Dispose condition.
thisReference
Type: TDisposable
The this reference.

Type Parameters

 

TDisposable
The type of the disposable.

See Also

Reference

Code Class
DisposedIf Overload
CodeJam Namespace

Clone this wiki locally