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
Gen2GcCallback.cs
Go to the documentation of this file.
1
using
System
;
2
using
System.Runtime.ConstrainedExecution
;
3
using
System.Runtime.InteropServices
;
4
5
namespace
System
6
{
7
// Token: 0x020000AB RID: 171
8
internal
sealed
class
Gen2GcCallback
:
CriticalFinalizerObject
9
{
10
// Token: 0x0600068B RID: 1675 RVA: 0x0000FB48 File Offset: 0x0000DD48
11
private
Gen2GcCallback
()
12
{
13
}
14
15
// Token: 0x0600068C RID: 1676 RVA: 0x0000FB5C File Offset: 0x0000DD5C
16
public
static
void
Register
(
Func<object, bool>
callback,
object
targetObj
)
17
{
18
}
19
20
// Token: 0x0600068D RID: 1677 RVA: 0x0000FB6C File Offset: 0x0000DD6C
21
private
void
Setup
(
Func<object, bool>
callback,
object
targetObj
)
22
{
23
this._callback
= callback;
24
GCHandle
gchandle
;
25
this._weakTargetObj
=
gchandle
;
26
}
27
28
// Token: 0x0600068E RID: 1678 RVA: 0x0000FB88 File Offset: 0x0000DD88
29
protected
override
void
Finalize
()
30
{
31
object
obj
;
32
if
(
obj
!=
null
)
33
{
34
Func<object, bool>
callback = this.
_callback
;
35
bool
hasShutdownStarted
=
Environment
.
HasShutdownStarted
;
36
GC
.
ReRegisterForFinalize
(
this
);
37
return
;
38
}
39
base
.Finalize();
40
}
41
42
// Token: 0x0400026D RID: 621
43
private
Func<object, bool>
_callback
;
44
45
// Token: 0x0400026E RID: 622
46
private
GCHandle
_weakTargetObj
;
47
}
48
}
j__TPar
class f__AnonymousType0<< Count > j__TPar
Definition
--f__AnonymousType0.cs:8
System.Environment.HasShutdownStarted
static bool HasShutdownStarted
Definition
Environment.cs:64
System.Environment
Definition
Environment.cs:17
System.Func
Definition
Func.cs:8
System.GC.ReRegisterForFinalize
static void ReRegisterForFinalize(object obj)
Definition
GC.cs:129
System.GC
Definition
GC.cs:11
System.Gen2GcCallback.Setup
void Setup(Func< object, bool > callback, object targetObj)
Definition
Gen2GcCallback.cs:21
System.Gen2GcCallback._callback
Func< object, bool > _callback
Definition
Gen2GcCallback.cs:43
System.Gen2GcCallback._weakTargetObj
GCHandle _weakTargetObj
Definition
Gen2GcCallback.cs:46
System.Gen2GcCallback.Finalize
override void Finalize()
Definition
Gen2GcCallback.cs:29
System.Gen2GcCallback.Gen2GcCallback
Gen2GcCallback()
Definition
Gen2GcCallback.cs:11
System.Gen2GcCallback.Register
static void Register(Func< object, bool > callback, object targetObj)
Definition
Gen2GcCallback.cs:16
System.Gen2GcCallback
Definition
Gen2GcCallback.cs:9
System.Runtime.ConstrainedExecution.CriticalFinalizerObject
Definition
CriticalFinalizerObject.cs:7
System.Runtime.ConstrainedExecution
Definition
Cer.cs:4
System.Runtime.InteropServices
Definition
_Activator.cs:4
System.ExceptionArgument.obj
@ obj
System
Definition
__ComObject.cs:4
System.Runtime.InteropServices.GCHandle
Definition
GCHandle.cs:9
source
mscorlib
System
Gen2GcCallback.cs
Generated by
1.10.0