Class ComWrapper
Static type to simplify the creation of ComWrapper{T} instances.
Assembly: CAMAPI.DotnetHelper.dll
Syntax
public static class ComWrapper
Methods
Adopt<T>(T?)
Wraps an object received from a COM call or as a callback parameter and releases its RCW,
so the object lives exactly as long as the wrapper. The passed object must not be used afterwards
Declaration
public static ComWrapper<T> Adopt<T>(T? comObject)
Parameters
| Type |
Name |
Description |
| T |
comObject |
|
Returns
Type Parameters
Create<T>(T?)
Simply creates a new instance of a wrapping object for a T type object.
Declaration
public static ComWrapper<T> Create<T>(T? wrappingInterface) where T : class
Parameters
| Type |
Name |
Description |
| T |
wrappingInterface |
|
Returns
Type Parameters