using System;
using Cpp2IlInjected;
namespace System.Runtime.InteropServices
{
/// Wraps a managed object holding a handle to a resource that is passed to unmanaged code using platform invoke.
// Token: 0x0200057F RID: 1407
[Token(Token = "0x200057F")]
[ComVisible(true)]
public struct HandleRef
{
/// Initializes a new instance of the class with the object to wrap and a handle to the resource used by unmanaged code.
/// A managed object that should not be finalized until the platform invoke call returns.
/// An that indicates a handle to a resource.
// Token: 0x06002AB5 RID: 10933 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002AB5")]
[Address(RVA = "0x479F00", Offset = "0x478D00", VA = "0x180479F00")]
public HandleRef(object wrapper, IntPtr handle)
{
}
/// Gets the handle to a resource.
/// The handle to a resource.
// Token: 0x17000652 RID: 1618
// (get) Token: 0x06002AB6 RID: 10934 RVA: 0x00016A40 File Offset: 0x00014C40
[Token(Token = "0x17000652")]
public IntPtr Handle
{
[Token(Token = "0x6002AB6")]
[Address(RVA = "0x57C630", Offset = "0x57B430", VA = "0x18057C630")]
get
{
return 0;
}
}
// Token: 0x04001933 RID: 6451
[FieldOffset(Offset = "0x0")]
[Token(Token = "0x4001933")]
internal object m_wrapper;
// Token: 0x04001934 RID: 6452
[FieldOffset(Offset = "0x8")]
[Token(Token = "0x4001934")]
internal IntPtr m_handle;
}
}