using System; namespace System.Runtime.InteropServices { /// Wraps objects the marshaler should marshal as a VT_DISPATCH. // Token: 0x0200030A RID: 778 [ComVisible(true)] [Serializable] public sealed class DispatchWrapper { /// Initializes a new instance of the class with the object being wrapped. /// The object to be wrapped and converted to . /// /// is not a class or an array.-or- does not support IDispatch. /// The parameter was marked with a attribute that was passed a value of false.-or-The parameter inherits from a type marked with a attribute that was passed a value of false. // Token: 0x060021EF RID: 8687 RVA: 0x000793BC File Offset: 0x000775BC public DispatchWrapper(object obj) { Marshal.GetIDispatchForObject(obj); this.wrappedObject = obj; } /// Gets the object wrapped by the . /// The object wrapped by the . // Token: 0x1700064A RID: 1610 // (get) Token: 0x060021F0 RID: 8688 RVA: 0x000793D4 File Offset: 0x000775D4 public object WrappedObject { get { return this.wrappedObject; } } // Token: 0x04000D06 RID: 3334 private object wrappedObject; } }