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
LazyInitializer.cs
Go to the documentation of this file.
1using System;
3
4namespace System.Threading
5{
6 // Token: 0x020001BB RID: 443
7 public static class LazyInitializer
8 {
9 // Token: 0x060010AF RID: 4271 RVA: 0x0000207A File Offset: 0x0000027A
10 public static T EnsureInitialized<T>(T target) where T : class
11 {
12 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
13 }
14
15 // Token: 0x060010B0 RID: 4272 RVA: 0x00023608 File Offset: 0x00021808
16 private static T EnsureInitializedCore<T>(T target) where T : class
17 {
18 }
19
20 // Token: 0x060010B1 RID: 4273 RVA: 0x0000207A File Offset: 0x0000027A
21 public static T EnsureInitialized<T>(T target, Func<T> valueFactory) where T : class
22 {
23 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
24 }
25
26 // Token: 0x060010B2 RID: 4274 RVA: 0x00023618 File Offset: 0x00021818
27 private static T EnsureInitializedCore<T>(T target, Func<T> valueFactory) where T : class
28 {
29 while (target == null)
30 {
31 }
32 return target;
33 }
34
35 // Token: 0x060010B3 RID: 4275 RVA: 0x0000207A File Offset: 0x0000027A
36 public static T EnsureInitialized<T>(T target, object syncLock, Func<T> valueFactory) where T : class
37 {
38 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
39 }
40
41 // Token: 0x060010B4 RID: 4276 RVA: 0x0002362C File Offset: 0x0002182C
42 private static T EnsureInitializedCore<T>(T target, object syncLock, Func<T> valueFactory) where T : class
43 {
44 long num = 0L;
45 object obj;
46 Monitor.Enter(obj, num != 0L);
47 if (syncLock != null)
48 {
49 long num2 = 0L;
51 if (num2 != 0L || 5 == 0)
52 {
53 }
54 throw new OutOfMemoryException();
55 }
56 long num3 = 0L;
58 if (num3 == 0L)
59 {
60 }
61 throw new OutOfMemoryException();
62 }
63
64 // Token: 0x060010B5 RID: 4277 RVA: 0x0002366C File Offset: 0x0002186C
65 private static object EnsureLockInitialized(object syncLock)
66 {
67 object obj;
68 if (obj == null)
69 {
70 }
71 return obj;
72 }
73 }
74}
class f__AnonymousType0<< Count > j__TPar
static object EnsureLockInitialized(object syncLock)
static T EnsureInitialized< T >(T target)
static T EnsureInitializedCore< T >(T target)
static void Exit(object obj)
Definition Monitor.cs:47
static void Enter(object obj)
Definition Monitor.cs:11