scripts
This commit is contained in:
@@ -0,0 +1,38 @@
|
||||
using System;
|
||||
|
||||
namespace System.Runtime.InteropServices
|
||||
{
|
||||
/// <summary>Wraps objects the marshaler should marshal as a VT_DISPATCH.</summary>
|
||||
// Token: 0x0200030A RID: 778
|
||||
[ComVisible(true)]
|
||||
[Serializable]
|
||||
public sealed class DispatchWrapper
|
||||
{
|
||||
/// <summary>Initializes a new instance of the <see cref="T:System.Runtime.InteropServices.DispatchWrapper" /> class with the object being wrapped.</summary>
|
||||
/// <param name="obj">The object to be wrapped and converted to <see cref="F:System.Runtime.InteropServices.VarEnum.VT_DISPATCH" />. </param>
|
||||
/// <exception cref="T:System.ArgumentException">
|
||||
/// <paramref name="obj" /> is not a class or an array.-or- <paramref name="obj" /> does not support IDispatch. </exception>
|
||||
/// <exception cref="T:System.InvalidOperationException">The <paramref name="obj" /> parameter was marked with a <see cref="T:System.Runtime.InteropServices.ComVisibleAttribute" /> attribute that was passed a value of false.-or-The <paramref name="obj" /> parameter inherits from a type marked with a <see cref="T:System.Runtime.InteropServices.ComVisibleAttribute" /> attribute that was passed a value of false.</exception>
|
||||
// Token: 0x060021EF RID: 8687 RVA: 0x000793BC File Offset: 0x000775BC
|
||||
public DispatchWrapper(object obj)
|
||||
{
|
||||
Marshal.GetIDispatchForObject(obj);
|
||||
this.wrappedObject = obj;
|
||||
}
|
||||
|
||||
/// <summary>Gets the object wrapped by the <see cref="T:System.Runtime.InteropServices.DispatchWrapper" />.</summary>
|
||||
/// <returns>The object wrapped by the <see cref="T:System.Runtime.InteropServices.DispatchWrapper" />.</returns>
|
||||
// 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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user