ScopeGuardCreateT Method |  |
Namespace: LawoAssembly: Lawo (in Lawo.dll) Version: 1.4.1707.27006
Syntaxpublic 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