Click or drag to resize
ScopeGuardCreateT Method

Namespace: Lawo
Assembly: Lawo (in Lawo.dll) Version: 1.4.1707.27006
Syntax
C#
public static ScopeGuard<T> Create<T>(
	T resource
)
where T : IDisposable

Parameters

resource
Type: T
The resource object that should be disposed in the event of failure. Can be null.

Type Parameters

T
The type of the resource to guard.

Return Value

Type: ScopeGuardT
See Also