Click or drag to resize

SafeHandleExtensionsWithHandleT(SafeHandle, FuncIntPtr, T) Method


Namespace: Ozeki.Common
Assembly: OzekiSDK (in OzekiSDK.dll) Version: 10.4.98
Syntax
public static T WithHandle<T>(
	this SafeHandle safeHandle,
	Func<IntPtr, T> func
)

Parameters

safeHandle  SafeHandle
 
func  FuncIntPtr, T
 

Type Parameters

T

Return Value

T

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type SafeHandle. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also