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
LicenseManager.cs
Go to the documentation of this file.
1using System;
4
6{
7 // Token: 0x02000395 RID: 917
8 public sealed class LicenseManager
9 {
10 // Token: 0x060017D3 RID: 6099 RVA: 0x00043988 File Offset: 0x00041B88
12 {
13 }
14
15 // Token: 0x1700056F RID: 1391
16 // (get) Token: 0x060017D4 RID: 6100 RVA: 0x0004399C File Offset: 0x00041B9C
17 // (set) Token: 0x060017D5 RID: 6101 RVA: 0x000439C8 File Offset: 0x00041BC8
19 {
20 get
21 {
22 if (!true)
23 {
24 }
25 if (!true)
26 {
27 }
28 if (!true)
29 {
30 }
31 if (!false)
32 {
33 }
34 throw new OutOfMemoryException();
35 }
36 set
37 {
38 if (!true)
39 {
40 }
41 if (!false)
42 {
43 return;
44 }
45 throw new OutOfMemoryException();
46 }
47 }
48
49 // Token: 0x17000570 RID: 1392
50 // (get) Token: 0x060017D6 RID: 6102 RVA: 0x000439F8 File Offset: 0x00041BF8
52 {
53 get
54 {
55 if (!true)
56 {
57 }
58 if (!true)
59 {
60 return;
61 }
62 }
63 }
64
65 // Token: 0x060017D7 RID: 6103 RVA: 0x00043A0C File Offset: 0x00041C0C
66 private static void CacheProvider(Type type, LicenseProvider provider)
67 {
68 }
69
70 // Token: 0x060017D8 RID: 6104 RVA: 0x00043A2C File Offset: 0x00041C2C
72 {
73 if (!true)
74 {
75 }
76 object obj;
77 return obj;
78 }
79
80 // Token: 0x060017D9 RID: 6105 RVA: 0x00043A40 File Offset: 0x00041C40
81 public static object CreateWithContext(Type type, LicenseContext creationContext, object[] args)
82 {
83 int num = 1;
84 if (num == 0)
85 {
86 }
87 if (num == 0)
88 {
89 }
91 if (num == 0)
92 {
93 }
94 long num2 = 0L;
96 if (num2 != 0L)
97 {
98 throw new OutOfMemoryException();
99 }
100 if (!false)
101 {
102 object obj;
103 return obj;
104 }
105 throw new OutOfMemoryException();
106 }
107
108 // Token: 0x060017DA RID: 6106 RVA: 0x00043A98 File Offset: 0x00041C98
109 private static bool GetCachedNoLicenseProvider(Type type)
110 {
111 if (!true)
112 {
113 }
114 if (!true)
115 {
116 return;
117 }
118 }
119
120 // Token: 0x060017DB RID: 6107 RVA: 0x00043AAC File Offset: 0x00041CAC
122 {
123 if (!true)
124 {
125 }
126 throw new InvalidCastException();
127 }
128
129 // Token: 0x060017DC RID: 6108 RVA: 0x00043AC4 File Offset: 0x00041CC4
131 {
132 if (!true)
133 {
134 }
135 throw new InvalidCastException();
136 }
137
138 // Token: 0x060017DD RID: 6109 RVA: 0x00043ADC File Offset: 0x00041CDC
139 public static bool IsLicensed(Type type)
140 {
141 if (!true)
142 {
143 }
144 bool flag;
145 if (flag)
146 {
147 return flag;
148 }
149 return flag;
150 }
151
152 // Token: 0x060017DE RID: 6110 RVA: 0x00043AF4 File Offset: 0x00041CF4
153 public static bool IsValid(Type type)
154 {
155 if (!true)
156 {
157 }
158 bool flag;
159 if (flag)
160 {
161 return flag;
162 }
163 return flag;
164 }
165
166 // Token: 0x060017DF RID: 6111 RVA: 0x00043B0C File Offset: 0x00041D0C
167 public static bool IsValid(Type type, object instance, [Out] License license)
168 {
169 if (!true)
170 {
171 }
172 bool flag;
173 return flag;
174 }
175
176 // Token: 0x060017E0 RID: 6112 RVA: 0x00043B20 File Offset: 0x00041D20
177 public static void LockContext(object contextUser)
178 {
179 if (!true)
180 {
181 }
182 if (!false)
183 {
184 return;
185 }
186 throw new OutOfMemoryException();
187 }
188
189 // Token: 0x060017E1 RID: 6113 RVA: 0x00043B50 File Offset: 0x00041D50
190 public static void UnlockContext(object contextUser)
191 {
192 if (!true)
193 {
194 }
195 if (!false)
196 {
197 return;
198 }
199 throw new OutOfMemoryException();
200 }
201
202 // Token: 0x060017E2 RID: 6114 RVA: 0x00043B80 File Offset: 0x00041D80
203 private static bool ValidateInternal(Type type, object instance, bool allowExceptions, [Out] License license)
204 {
205 if (!true)
206 {
207 }
209 bool flag;
210 return flag;
211 }
212
213 // Token: 0x060017E3 RID: 6115 RVA: 0x00043B98 File Offset: 0x00041D98
214 private static bool ValidateInternalRecursive(LicenseContext context, Type type, object instance, bool allowExceptions, [Out] License license, [Out] string licenseKey)
215 {
216 if (!true)
217 {
218 }
220 bool flag;
221 if (licenseProvider != null)
222 {
224 if (licenseProvider == null)
225 {
226 return flag;
227 }
228 if (type != null)
229 {
230 goto IL_003B;
231 }
232 }
233 if (type == null)
234 {
235 return flag;
236 }
237 IL_003B:
238 throw new InvalidCastException();
239 }
240
241 // Token: 0x060017E4 RID: 6116 RVA: 0x00043BE8 File Offset: 0x00041DE8
242 public static void Validate(Type type)
243 {
244 if (!true)
245 {
246 }
247 bool flag;
248 if (flag)
249 {
250 }
251 }
252
253 // Token: 0x060017E5 RID: 6117 RVA: 0x00043BFC File Offset: 0x00041DFC
254 public static License Validate(Type type, object instance)
255 {
256 /*
257An exception occurred when decompiling this method (060017E5)
258
259ICSharpCode.Decompiler.DecompilerException: Error decompiling System.ComponentModel.License System.ComponentModel.LicenseManager::Validate(System.Type,System.Object)
260
261 ---> System.Exception: Basic block has to end with unconditional control flow.
262{
263 IL_0000:
264 brtrue(IL_0000, ldc.i4:bool(1))
265}
266
267 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
268 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
269 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
270 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1846
271 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
272 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
273 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
274 --- End of inner exception stack trace ---
275 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
276 at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1683
277*/;
278 }
279
280 // Token: 0x060017E6 RID: 6118 RVA: 0x00043C0C File Offset: 0x00041E0C
281 // Note: this type is marked as 'beforefieldinit'.
283 {
284 }
285
286 // Token: 0x0400122F RID: 4655
287 private static readonly object s_selfLock;
288
289 // Token: 0x04001230 RID: 4656
290 private static LicenseContext s_context;
291
292 // Token: 0x04001231 RID: 4657
293 private static object s_contextLockHolder;
294
295 // Token: 0x04001232 RID: 4658
296 private static Hashtable s_providers;
297
298 // Token: 0x04001233 RID: 4659
300
301 // Token: 0x04001234 RID: 4660
302 private static readonly object s_internalSyncObject;
303 }
304}
class f__AnonymousType0<< Count > j__TPar
static License Validate(Type type, object instance)
static object CreateWithContext(Type type, LicenseContext creationContext, object[] args)
static bool ValidateInternal(Type type, object instance, bool allowExceptions, [Out] License license)
static LicenseUsageMode UsageMode
static LicenseProvider GetCachedProviderInstance(Type providerType)
static void UnlockContext(object contextUser)
static bool ValidateInternalRecursive(LicenseContext context, Type type, object instance, bool allowExceptions, [Out] License license, [Out] string licenseKey)
static void LockContext(object contextUser)
static readonly object s_internalSyncObject
static void CacheProvider(Type type, LicenseProvider provider)
static bool GetCachedNoLicenseProvider(Type type)
static bool IsValid(Type type, object instance, [Out] License license)
static object CreateWithContext(Type type, LicenseContext creationContext)
static LicenseProvider GetCachedProvider(Type type)