Files
27Aug2021-Cpp2IL-Dump/mscorlib/System/Runtime/InteropServices/HandleRef.cs
T
niko c12fbe3fc6 m
2026-04-12 16:51:38 +02:00

48 lines
1.6 KiB
C#

using System;
using Cpp2IlInjected;
namespace System.Runtime.InteropServices
{
/// <summary>Wraps a managed object holding a handle to a resource that is passed to unmanaged code using platform invoke.</summary>
// Token: 0x0200059E RID: 1438
[Token(Token = "0x200059E")]
[ComVisible(true)]
public struct HandleRef
{
/// <summary>Initializes a new instance of the <see cref="T:System.Runtime.InteropServices.HandleRef" /> class with the object to wrap and a handle to the resource used by unmanaged code.</summary>
/// <param name="wrapper">A managed object that should not be finalized until the platform invoke call returns.</param>
/// <param name="handle">An <see cref="T:System.IntPtr" /> that indicates a handle to a resource.</param>
// Token: 0x06002CC9 RID: 11465 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002CC9")]
[Address(RVA = "0x4AF6A0", Offset = "0x4AE6A0", VA = "0x1804AF6A0")]
public HandleRef(object wrapper, IntPtr handle)
{
}
/// <summary>Gets the handle to a resource.</summary>
/// <returns>The handle to a resource.</returns>
// Token: 0x170006CA RID: 1738
// (get) Token: 0x06002CCA RID: 11466 RVA: 0x00018E28 File Offset: 0x00017028
[Token(Token = "0x170006CA")]
public IntPtr Handle
{
[Token(Token = "0x6002CCA")]
[Address(RVA = "0x634760", Offset = "0x633760", VA = "0x180634760")]
get
{
return 0;
}
}
// Token: 0x040019F6 RID: 6646
[FieldOffset(Offset = "0x0")]
[Token(Token = "0x40019F6")]
internal object m_wrapper;
// Token: 0x040019F7 RID: 6647
[FieldOffset(Offset = "0x8")]
[Token(Token = "0x40019F7")]
internal IntPtr m_handle;
}
}