Skip to content

M_CodeJam_Code_DisposedIf__1_1

andrewvk edited this page Apr 5, 2016 · 7 revisions

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

[This is preliminary documentation and is subject to change.]

Assertion for object disposal

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

Syntax

C#

public static void DisposedIf<TDisposable>(
	bool disposed,
	TDisposable thisReference,
	string message
)
where TDisposable : IDisposable

VB

Public Shared Sub DisposedIf(Of TDisposable As IDisposable) ( 
	disposed As Boolean,
	thisReference As TDisposable,
	message As String
)

F#

static member DisposedIf : 
        disposed : bool * 
        thisReference : 'TDisposable * 
        message : string -> unit  when 'TDisposable : IDisposable

Parameters

 

disposed
Type: System.Boolean
[Missing documentation for "M:CodeJam.Code.DisposedIf1(System.Boolean,0,System.String)"]
thisReference
Type: TDisposable
[Missing documentation for "M:CodeJam.Code.DisposedIf1(System.Boolean,0,System.String)"]
message
Type: System.String
[Missing documentation for "M:CodeJam.Code.DisposedIf1(System.Boolean,0,System.String)"]

Type Parameters

 

TDisposable

See Also

Reference

Code Class
DisposedIf Overload
CodeJam Namespace

Clone this wiki locally