terraria-cpp2il-methodrecon
v1.4.4.9
Terraria mobile dump, with reconstructed method body. Dump with CallAnalysis: https://infinitynichto.github.io/terraria-cpp2il
Loading...
Searching...
No Matches
CriticalHandle.cs
Go to the documentation of this file.
1
using
System
;
2
using
System.Runtime.ConstrainedExecution
;
3
4
namespace
System.Runtime.InteropServices
5
{
6
// Token: 0x0200044D RID: 1101
7
public
abstract
class
CriticalHandle
:
CriticalFinalizerObject
,
IDisposable
8
{
9
// Token: 0x0600217A RID: 8570 RVA: 0x0004C1D8 File Offset: 0x0004A3D8
10
[
ReliabilityContract
(
Consistency
.WillNotCorruptState,
Cer
.MayFail)]
11
protected
CriticalHandle
(
IntPtr
invalidHandleValue
)
12
{
13
this.handle
=
invalidHandleValue
;
14
}
15
16
// Token: 0x0600217B RID: 8571 RVA: 0x0004C1F4 File Offset: 0x0004A3F4
17
[
ReliabilityContract
(
Consistency
.WillNotCorruptState,
Cer
.Success)]
18
protected
override
void
Finalize
()
19
{
20
base
.Finalize();
21
}
22
23
// Token: 0x0600217C RID: 8572 RVA: 0x0004C228 File Offset: 0x0004A428
24
[
ReliabilityContract
(
Consistency
.WillNotCorruptState,
Cer
.Success)]
25
private
void
Cleanup
()
26
{
27
if
(!this.
_isClosed
)
28
{
29
this._isClosed
=
true
;
30
}
31
}
32
33
// Token: 0x0600217D RID: 8573 RVA: 0x0004C24C File Offset: 0x0004A44C
34
private
static
void
FireCustomerDebugProbe
()
35
{
36
}
37
38
// Token: 0x0600217E RID: 8574 RVA: 0x0004C25C File Offset: 0x0004A45C
39
[
ReliabilityContract
(
Consistency
.WillNotCorruptState,
Cer
.Success)]
40
protected
void
SetHandle
(
IntPtr
handle
)
41
{
42
this.handle
=
handle
;
43
}
44
45
// Token: 0x17000458 RID: 1112
46
// (get) Token: 0x0600217F RID: 8575 RVA: 0x0004C270 File Offset: 0x0004A470
47
public
bool
IsClosed
48
{
49
[
ReliabilityContract
(
Consistency
.WillNotCorruptState,
Cer
.Success)]
50
get
51
{
52
return
this.
_isClosed
;
53
}
54
}
55
56
// Token: 0x17000459 RID: 1113
57
// (get) Token: 0x06002180 RID: 8576
58
public
abstract
bool
IsInvalid
59
{
60
[
ReliabilityContract
(
Consistency
.WillNotCorruptState,
Cer
.Success)]
61
get
;
62
}
63
64
// Token: 0x06002181 RID: 8577 RVA: 0x0004C284 File Offset: 0x0004A484
65
[
ReliabilityContract
(
Consistency
.WillNotCorruptState,
Cer
.Success)]
66
public
void
Dispose
()
67
{
68
}
69
70
// Token: 0x06002182 RID: 8578 RVA: 0x0004C294 File Offset: 0x0004A494
71
[
ReliabilityContract
(
Consistency
.WillNotCorruptState,
Cer
.Success)]
72
protected
virtual
void
Dispose
(
bool
disposing
)
73
{
74
this.
Cleanup
();
75
}
76
77
// Token: 0x06002183 RID: 8579
78
[
ReliabilityContract
(
Consistency
.WillNotCorruptState,
Cer
.Success)]
79
protected
abstract
bool
ReleaseHandle
();
80
81
// Token: 0x0400127B RID: 4731
82
protected
IntPtr
handle
;
83
84
// Token: 0x0400127C RID: 4732
85
private
bool
_isClosed
;
86
}
87
}
j__TPar
class f__AnonymousType0<< Count > j__TPar
Definition
--f__AnonymousType0.cs:8
System.Runtime.ConstrainedExecution.CriticalFinalizerObject
Definition
CriticalFinalizerObject.cs:7
System.Runtime.InteropServices.CriticalHandle.IsInvalid
bool IsInvalid
Definition
CriticalHandle.cs:59
System.Runtime.InteropServices.CriticalHandle.IsClosed
bool IsClosed
Definition
CriticalHandle.cs:48
System.Runtime.InteropServices.CriticalHandle.handle
IntPtr handle
Definition
CriticalHandle.cs:82
System.Runtime.InteropServices.CriticalHandle.Dispose
void Dispose()
Definition
CriticalHandle.cs:66
System.Runtime.InteropServices.CriticalHandle.CriticalHandle
CriticalHandle(IntPtr invalidHandleValue)
Definition
CriticalHandle.cs:11
System.Runtime.InteropServices.CriticalHandle.FireCustomerDebugProbe
static void FireCustomerDebugProbe()
Definition
CriticalHandle.cs:34
System.Runtime.InteropServices.CriticalHandle.Cleanup
void Cleanup()
Definition
CriticalHandle.cs:25
System.Runtime.InteropServices.CriticalHandle.Finalize
override void Finalize()
Definition
CriticalHandle.cs:18
System.Runtime.InteropServices.CriticalHandle.SetHandle
void SetHandle(IntPtr handle)
Definition
CriticalHandle.cs:40
System.Runtime.InteropServices.CriticalHandle._isClosed
bool _isClosed
Definition
CriticalHandle.cs:85
System.Runtime.InteropServices.CriticalHandle.Dispose
virtual void Dispose(bool disposing)
Definition
CriticalHandle.cs:72
System.Runtime.InteropServices.CriticalHandle.ReleaseHandle
bool ReleaseHandle()
System.Runtime.InteropServices.CriticalHandle
Definition
CriticalHandle.cs:8
System.IDisposable
Definition
IDisposable.cs:7
System.Runtime.ConstrainedExecution.Consistency
Consistency
Definition
Consistency.cs:7
System.Runtime.ConstrainedExecution.Cer
Cer
Definition
Cer.cs:7
System.Runtime.ConstrainedExecution
Definition
Cer.cs:4
System.Runtime.InteropServices
Definition
_Activator.cs:4
System
Definition
__ComObject.cs:4
System.IntPtr
Definition
IntPtr.cs:13
source
mscorlib
System
Runtime
InteropServices
CriticalHandle.cs
Generated by
1.10.0