2021-11-11 11:18:46 -06:00
|
|
|
using System;
|
|
|
|
|
using System.Runtime.CompilerServices;
|
|
|
|
|
using System.Runtime.InteropServices;
|
|
|
|
|
|
|
|
|
|
internal class CComPtrMgd_003CIAccountManagement_003E : IDisposable
|
|
|
|
|
{
|
|
|
|
|
public unsafe IAccountManagement* p = null;
|
|
|
|
|
|
|
|
|
|
private void _007ECComPtrMgd_003CIAccountManagement_003E()
|
|
|
|
|
{
|
|
|
|
|
Release();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private void _0021CComPtrMgd_003CIAccountManagement_003E()
|
|
|
|
|
{
|
|
|
|
|
Release();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public unsafe void Release()
|
|
|
|
|
{
|
|
|
|
|
//IL_0014: Expected I, but got I8
|
|
|
|
|
//IL_0021: Expected I, but got I8
|
|
|
|
|
IAccountManagement* ptr = p;
|
|
|
|
|
IAccountManagement* ptr2 = ptr;
|
|
|
|
|
if (ptr != null)
|
|
|
|
|
{
|
|
|
|
|
p = null;
|
|
|
|
|
((delegate* unmanaged[Cdecl, Cdecl]<IntPtr, uint>)(*(ulong*)(*(long*)ptr2 + 16)))((nint)ptr2);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
[SpecialName]
|
|
|
|
|
public unsafe IAccountManagement* op_MemberSelection()
|
|
|
|
|
{
|
|
|
|
|
return p;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
[SpecialName]
|
|
|
|
|
public unsafe IAccountManagement* op_Assign(IAccountManagement* lp)
|
|
|
|
|
{
|
|
|
|
|
//IL_001c: Expected I, but got I8
|
|
|
|
|
Release();
|
|
|
|
|
p = lp;
|
|
|
|
|
if (lp != null)
|
|
|
|
|
{
|
|
|
|
|
((delegate* unmanaged[Cdecl, Cdecl]<IntPtr, uint>)(*(ulong*)(*(long*)lp + 8)))((nint)lp);
|
|
|
|
|
}
|
|
|
|
|
return p;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
[return: MarshalAs(UnmanagedType.U1)]
|
|
|
|
|
public static unsafe bool operator !(CComPtrMgd_003CIAccountManagement_003E self)
|
|
|
|
|
{
|
|
|
|
|
return (long)(nint)self.p == 0;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
protected virtual void Dispose([MarshalAs(UnmanagedType.U1)] bool P_0)
|
|
|
|
|
{
|
|
|
|
|
if (P_0)
|
|
|
|
|
{
|
|
|
|
|
Release();
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
try
|
|
|
|
|
{
|
|
|
|
|
Release();
|
|
|
|
|
}
|
|
|
|
|
finally
|
|
|
|
|
{
|
2021-11-22 01:51:40 -06:00
|
|
|
//base.Finalize();
|
2021-11-11 11:18:46 -06:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2021-11-22 01:51:40 -06:00
|
|
|
public void Dispose()
|
2021-11-11 11:18:46 -06:00
|
|
|
{
|
|
|
|
|
Dispose(true);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
~CComPtrMgd_003CIAccountManagement_003E()
|
|
|
|
|
{
|
|
|
|
|
Dispose(false);
|
|
|
|
|
}
|
|
|
|
|
}
|