Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ ~Gen2GcCallback()

System.Gen2GcCallback.~Gen2GcCallback ( )
inlineprivate

Definition at line 35 of file Gen2GcCallback.cs.

36 {
38 {
39 object target = _weakTargetObj.Target;
40 if (target == null)
41 {
43 return;
44 }
45 try
46 {
47 if (!_callback1(target))
48 {
50 return;
51 }
52 }
53 catch
54 {
55 }
56 }
57 else
58 {
59 try
60 {
61 if (!_callback0())
62 {
63 return;
64 }
65 }
66 catch
67 {
68 }
69 }
70 GC.ReRegisterForFinalize(this);
71 }
readonly Func< bool > _callback0
readonly Func< object, bool > _callback1

References System.Gen2GcCallback._callback0, System.Gen2GcCallback._callback1, System.Gen2GcCallback._weakTargetObj, System.Runtime.InteropServices.GCHandle.Free(), System.Runtime.InteropServices.GCHandle.IsAllocated, System.GC.ReRegisterForFinalize(), and System.Runtime.InteropServices.GCHandle.Target.