Interface IDispatchWrapper<TSelf>
- Namespace
- CsCom.Runtime
- Assembly
- CsCom.Runtime.dll
Implemented by the late-bound wrappers generated for dispinterfaces.
public interface IDispatchWrapper<TSelf> : IDispatchProvider where TSelf : class, IDispatchWrapper<TSelf>
Type Parameters
TSelfThe wrapper type.
- Inherited Members
Remarks
A wrapper is an IDispatchProvider, also one of your own: the support code passes the COM object of its
Dispatch instead of the wrapper, and Release(object?) releases that
object, unless the wrapper is exposed to COM itself (IsExposedToCom(object?)). Such a wrapper is
passed itself where it implements IDispatch, so that its pointer converts back to it, and its
Dispatch otherwise.
Methods
Create(IDispatch)
Creates a wrapper for the specified IDispatch interface.
public static abstract TSelf Create(IDispatch dispatch)
Parameters
dispatchIDispatch
Returns
- TSelf