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
KeyPairPersistence.cs
Go to the documentation of this file.
1using System;
4using System.IO;
8using System.Text;
10
12{
13 // Token: 0x02000044 RID: 68
14 internal class KeyPairPersistence
15 {
16 // Token: 0x0600012F RID: 303 RVA: 0x00004B6C File Offset: 0x00002D6C
18 {
19 }
20
21 // Token: 0x06000130 RID: 304 RVA: 0x00004B7C File Offset: 0x00002D7C
22 public KeyPairPersistence(CspParameters parameters, string keyPair)
23 {
24 do
25 {
26 base..ctor();
27 }
28 while (parameters == null);
29 CspParameters cspParameters = this.Copy(parameters);
32 }
33
34 // Token: 0x1700001A RID: 26
35 // (get) Token: 0x06000131 RID: 305 RVA: 0x00004BA8 File Offset: 0x00002DA8
36 public string Filename
37 {
38 get
39 {
40 if (this._filename == null)
41 {
44 string containerName = this.ContainerName;
45 int keyNumber = this._params.KeyNumber;
46 string text;
48 int flags = this._params.m_flags;
50 }
51 string text2;
52 return text2;
53 }
54 }
55
56 // Token: 0x1700001B RID: 27
57 // (get) Token: 0x06000132 RID: 306 RVA: 0x00004C24 File Offset: 0x00002E24
58 // (set) Token: 0x06000133 RID: 307 RVA: 0x00004C38 File Offset: 0x00002E38
59 public string KeyValue
60 {
61 get
62 {
63 return this._keyvalue;
64 }
65 set
66 {
67 if (this._keyvalue != null)
68 {
69 return;
70 }
72 }
73 }
74
75 // Token: 0x1700001C RID: 28
76 // (get) Token: 0x06000134 RID: 308 RVA: 0x00004C58 File Offset: 0x00002E58
78 {
79 get
80 {
82 return this.Copy(@params);
83 }
84 }
85
86 // Token: 0x06000135 RID: 309 RVA: 0x00004C74 File Offset: 0x00002E74
87 public bool Load()
88 {
89 bool flag = File.Exists(this.Filename);
91 long num = 0L;
92 if (streamReader != null)
93 {
94 }
95 if (num == 0L)
96 {
97 }
98 throw new OutOfMemoryException();
99 }
100
101 // Token: 0x06000136 RID: 310 RVA: 0x00004CC0 File Offset: 0x00002EC0
102 public void Save()
103 {
104 string filename = this.Filename;
106 string text = this.ToXml();
107 long num = 0L;
109 if (fileStream != null)
110 {
111 return;
112 }
113 if (num == 0L)
114 {
115 int flags = this._params.m_flags;
116 string filename2 = this.Filename;
118 return;
119 }
120 throw new OutOfMemoryException();
121 }
122
123 // Token: 0x06000137 RID: 311 RVA: 0x00004D34 File Offset: 0x00002F34
124 public void Remove()
125 {
126 File.Delete(this.Filename);
127 }
128
129 // Token: 0x1700001D RID: 29
130 // (get) Token: 0x06000138 RID: 312 RVA: 0x00004D4C File Offset: 0x00002F4C
131 private static string UserPath
132 {
133 get
134 {
135 if (!true)
136 {
137 }
138 string text2;
139 string text = Path.Combine(text2, ".mono");
140 if (".mono" == null)
141 {
142 }
143 bool flag = Directory.Exists(Path.Combine(text, "keypairs"));
144 if ("keypairs" == null)
145 {
146 }
147 if ("keypairs" == null)
148 {
149 }
150 long num = 0L;
151 int num2 = 11;
152 if (num != 0L || num2 == 0)
153 {
154 }
155 throw new OutOfMemoryException();
156 }
157 }
158
159 // Token: 0x1700001E RID: 30
160 // (get) Token: 0x06000139 RID: 313 RVA: 0x00004DD0 File Offset: 0x00002FD0
161 private static string MachinePath
162 {
163 get
164 {
165 if (!true)
166 {
167 }
168 string text2;
169 string text = Path.Combine(text2, ".mono");
170 if (".mono" == null)
171 {
172 }
173 bool flag = Directory.Exists(Path.Combine(text, "keypairs"));
174 if ("keypairs" == null)
175 {
176 }
177 if ("keypairs" == null)
178 {
179 }
180 long num = 0L;
181 int num2 = 11;
182 if (num != 0L || num2 == 0)
183 {
184 }
185 throw new OutOfMemoryException();
186 }
187 }
188
189 // Token: 0x0600013A RID: 314 RVA: 0x0000207A File Offset: 0x0000027A
190 internal unsafe static bool _CanSecure(char* root)
191 {
192 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
193 }
194
195 // Token: 0x0600013B RID: 315 RVA: 0x0000207A File Offset: 0x0000027A
196 internal unsafe static bool _ProtectUser(char* path)
197 {
198 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
199 }
200
201 // Token: 0x0600013C RID: 316 RVA: 0x0000207A File Offset: 0x0000027A
202 internal unsafe static bool _ProtectMachine(char* path)
203 {
204 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
205 }
206
207 // Token: 0x0600013D RID: 317 RVA: 0x0000207A File Offset: 0x0000027A
208 internal unsafe static bool _IsUserProtected(char* path)
209 {
210 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
211 }
212
213 // Token: 0x0600013E RID: 318 RVA: 0x0000207A File Offset: 0x0000027A
214 internal unsafe static bool _IsMachineProtected(char* path)
215 {
216 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
217 }
218
219 // Token: 0x0600013F RID: 319 RVA: 0x00004E54 File Offset: 0x00003054
220 private static bool CanSecure(string path)
221 {
222 /*
223An exception occurred when decompiling this method (0600013F)
224
225ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean Mono.Security.Cryptography.KeyPairPersistence::CanSecure(System.String)
226
227 ---> System.Exception: Basic block has to end with unconditional control flow.
228{
229 IL_0000:
230 stloc:PlatformID(var_1_0C, ldfld:PlatformID(OperatingSystem::_platform, callgetter:OperatingSystem(Environment::get_OSVersion)))
231 stloc:int32(var_4_16, callgetter:int32(RuntimeHelpers::get_OffsetToStringData))
232 brtrue(IL_0000, ldloc:PlatformID[exp:bool](var_1_0C))
233}
234
235 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
236 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
237 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
238 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
239 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
240 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
241 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
242 --- End of inner exception stack trace ---
243 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
244 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
245*/;
246 }
247
248 // Token: 0x06000140 RID: 320 RVA: 0x00004E7C File Offset: 0x0000307C
249 private static bool ProtectUser(string path)
250 {
251 int num = 1;
252 if (num == 0)
253 {
254 }
256 if (num == 0)
257 {
258 return;
259 }
260 }
261
262 // Token: 0x06000141 RID: 321 RVA: 0x00004E9C File Offset: 0x0000309C
263 private static bool ProtectMachine(string path)
264 {
265 int num = 1;
266 if (num == 0)
267 {
268 }
270 if (num == 0)
271 {
272 return;
273 }
274 }
275
276 // Token: 0x06000142 RID: 322 RVA: 0x00004EBC File Offset: 0x000030BC
277 private static bool IsUserProtected(string path)
278 {
279 int num = 1;
280 if (num == 0)
281 {
282 }
284 if (num == 0)
285 {
286 return;
287 }
288 }
289
290 // Token: 0x06000143 RID: 323 RVA: 0x00004EDC File Offset: 0x000030DC
291 private static bool IsMachineProtected(string path)
292 {
293 int num = 1;
294 if (num == 0)
295 {
296 }
298 if (num == 0)
299 {
300 return;
301 }
302 }
303
304 // Token: 0x1700001F RID: 31
305 // (get) Token: 0x06000144 RID: 324 RVA: 0x00004EFC File Offset: 0x000030FC
306 private bool CanChange
307 {
308 get
309 {
310 /*
311An exception occurred when decompiling this method (06000144)
312
313ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean Mono.Security.Cryptography.KeyPairPersistence::get_CanChange()
314
315 ---> System.Exception: Basic block has to end with unconditional control flow.
316{
317 Block_0:
318 stloc:string(var_0_06, ldfld:string(KeyPairPersistence::_keyvalue, ldloc:KeyPairPersistence(this)))
319}
320
321 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
322 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
323 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
324 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
325 --- End of inner exception stack trace ---
326 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
327 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
328*/;
329 }
330 }
331
332 // Token: 0x17000020 RID: 32
333 // (get) Token: 0x06000145 RID: 325 RVA: 0x00004F10 File Offset: 0x00003110
335 {
336 get
337 {
338 /*
339An exception occurred when decompiling this method (06000145)
340
341ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean Mono.Security.Cryptography.KeyPairPersistence::get_UseDefaultKeyContainer()
342
343 ---> System.Exception: Basic block has to end with unconditional control flow.
344{
345 Block_0:
346 stloc:int32(var_0_0B, ldfld:int32(CspParameters::m_flags, ldfld:CspParameters(KeyPairPersistence::_params, ldloc:KeyPairPersistence(this))))
347}
348
349 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
350 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
351 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
352 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
353 --- End of inner exception stack trace ---
354 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
355 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
356*/;
357 }
358 }
359
360 // Token: 0x17000021 RID: 33
361 // (get) Token: 0x06000146 RID: 326 RVA: 0x00004F28 File Offset: 0x00003128
363 {
364 get
365 {
366 /*
367An exception occurred when decompiling this method (06000146)
368
369ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean Mono.Security.Cryptography.KeyPairPersistence::get_UseMachineKeyStore()
370
371 ---> System.Exception: Basic block has to end with unconditional control flow.
372{
373 Block_0:
374 stloc:int32(var_0_0B, ldfld:int32(CspParameters::m_flags, ldfld:CspParameters(KeyPairPersistence::_params, ldloc:KeyPairPersistence(this))))
375}
376
377 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
378 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
379 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
380 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
381 --- End of inner exception stack trace ---
382 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
383 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
384*/;
385 }
386 }
387
388 // Token: 0x17000022 RID: 34
389 // (get) Token: 0x06000147 RID: 327 RVA: 0x00004F40 File Offset: 0x00003140
390 private string ContainerName
391 {
392 get
393 {
394 string text;
395 if (this._container == null)
396 {
398 int flags = @params.m_flags;
399 string keyContainerName = @params.KeyContainerName;
400 if (keyContainerName != null && keyContainerName._stringLength != 0)
401 {
404 MD5 md = MD5.Create();
405 return "default";
406 }
409 }
410 return text;
411 }
412 }
413
414 // Token: 0x06000148 RID: 328 RVA: 0x00004FB4 File Offset: 0x000031B4
416 {
417 /*
418An exception occurred when decompiling this method (06000148)
419
420ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Security.Cryptography.CspParameters Mono.Security.Cryptography.KeyPairPersistence::Copy(System.Security.Cryptography.CspParameters)
421
422 ---> System.Exception: Basic block has to end with unconditional control flow.
423{
424 Block_0:
425 stloc:int32(var_0_06, ldfld:int32(CspParameters::ProviderType, ldloc:CspParameters(p)))
426 stloc:string(var_1_0D, ldfld:string(CspParameters::ProviderName, ldloc:CspParameters(p)))
427 stloc:string(var_2_14, ldfld:string(CspParameters::KeyContainerName, ldloc:CspParameters(p)))
428 stloc:int32(var_3_1B, ldfld:int32(CspParameters::KeyNumber, ldloc:CspParameters(p)))
429 stloc:int32(var_4_22, ldfld:int32(CspParameters::m_flags, ldloc:CspParameters(p)))
430}
431
432 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
433 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
434 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
435 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
436 --- End of inner exception stack trace ---
437 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
438 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
439*/;
440 }
441
442 // Token: 0x06000149 RID: 329 RVA: 0x00004FE4 File Offset: 0x000031E4
443 private void FromXml(string xml)
444 {
446 ArrayList children = securityElement.children;
449 }
450
451 // Token: 0x0600014A RID: 330 RVA: 0x00005008 File Offset: 0x00003208
452 private string ToXml()
453 {
454 /*
455An exception occurred when decompiling this method (0600014A)
456
457ICSharpCode.Decompiler.DecompilerException: Error decompiling System.String Mono.Security.Cryptography.KeyPairPersistence::ToXml()
458
459 ---> System.Exception: Basic block has to end with unconditional control flow.
460{
461 Block_1:
462 stloc:int32(var_5_2A, ldfld:int32(CspParameters::ProviderType, ldfld:CspParameters(KeyPairPersistence::_params, ldloc:KeyPairPersistence(this))))
463 stloc:string(var_7_34, callgetter:string(Environment::get_NewLine))
464 stloc:string(var_9_3C, callgetter:string(KeyPairPersistence::get_ContainerName, ldloc:KeyPairPersistence(this)))
465 stloc:string(var_11_46, callgetter:string(Environment::get_NewLine))
466 stloc:int32(var_13_53, ldfld:int32(CspParameters::KeyNumber, ldfld:CspParameters(KeyPairPersistence::_params, ldloc:KeyPairPersistence(this))))
467 stloc:string(var_15_5B, ldfld:string(KeyPairPersistence::_keyvalue, ldloc:KeyPairPersistence(this)))
468 stloc:string(var_17_65, callgetter:string(Environment::get_NewLine))
469}
470
471 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
472 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
473 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
474 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
475 --- End of inner exception stack trace ---
476 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
477 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
478*/;
479 }
480
481 // Token: 0x0600014B RID: 331 RVA: 0x0000507C File Offset: 0x0000327C
482 // Note: this type is marked as 'beforefieldinit'.
484 {
485 }
486
487 // Token: 0x0400013F RID: 319
488 private static bool _userPathExists;
489
490 // Token: 0x04000140 RID: 320
491 private static string _userPath;
492
493 // Token: 0x04000141 RID: 321
494 private static bool _machinePathExists;
495
496 // Token: 0x04000142 RID: 322
497 private static string _machinePath;
498
499 // Token: 0x04000143 RID: 323
501
502 // Token: 0x04000144 RID: 324
503 private string _keyvalue;
504
505 // Token: 0x04000145 RID: 325
506 private string _filename;
507
508 // Token: 0x04000146 RID: 326
509 private string _container;
510
511 // Token: 0x04000147 RID: 327
512 private static object lockobj;
513 }
514}
class f__AnonymousType0<< Count > j__TPar
static unsafe bool _IsUserProtected(char *path)
KeyPairPersistence(CspParameters parameters, string keyPair)
static unsafe bool _IsMachineProtected(char *path)
static CultureInfo InvariantCulture
static bool Exists(string path)
Definition Directory.cs:64
static StreamReader OpenText(string path)
Definition File.cs:10
static bool Exists(string path)
Definition File.cs:86
static void Delete(string path)
Definition File.cs:77
static string Combine(string path1, string path2)
Definition Path.cs:41
static new MD5 Create()
Definition MD5.cs:18
static Encoding UTF8
Definition Encoding.cs:828
static Guid NewGuid()
Definition Guid.cs:15
override string ToString()
Definition Guid.cs:283