Name

DispatchWrapper

Synopsis

By default, objects are passed to unmanaged methods as the VT_UNKNOWN type. This wrapper is used to send an object as type VT_DISPATCH.

public sealed class DispatchWrapper {
// Public Constructors
   public method DispatchWrapper(object obj);  
// Public Instance Properties
   public field object WrappedObject{get; } 
}

Get C# in a Nutshell now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.