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
X500DistinguishedName.cs
Go to the documentation of this file.
1using System;
2
4{
5 // Token: 0x02000103 RID: 259
6 [MonoTODO("Some X500DistinguishedNameFlags options aren't supported, like DoNotUsePlusSign, DoNotUseQuotes and ForceUTF8Encoding")]
8 {
9 // Token: 0x060005A4 RID: 1444 RVA: 0x00015FFC File Offset: 0x000141FC
11 {
12 do
13 {
14 base..ctor();
15 }
16 while (encodedDistinguishedName == null);
18 this.DecodeRawData();
19 }
20
21 // Token: 0x17000116 RID: 278
22 // (get) Token: 0x060005A5 RID: 1445 RVA: 0x00016020 File Offset: 0x00014220
23 public string Name
24 {
25 get
26 {
27 return this.name;
28 }
29 }
30
31 // Token: 0x060005A6 RID: 1446 RVA: 0x00016034 File Offset: 0x00014234
33 {
34 while ((flag != X500DistinguishedNameFlags.None && 29169 == 0) || this._raw == null)
35 {
36 }
38 byte[] raw = this._raw;
39 string text;
40 return text;
41 }
42
43 // Token: 0x060005A7 RID: 1447 RVA: 0x00016064 File Offset: 0x00014264
44 public override string Format(bool multiLine)
45 {
46 string text = this.Decode(X500DistinguishedNameFlags.UseNewLines);
47 int stringLength = text._stringLength;
48 string newLine = Environment.NewLine;
49 return text + newLine;
50 }
51
52 // Token: 0x060005A8 RID: 1448 RVA: 0x00016098 File Offset: 0x00014298
53 private static string GetSeparator(X500DistinguishedNameFlags flag)
54 {
55 return Environment.NewLine;
56 }
57
58 // Token: 0x060005A9 RID: 1449 RVA: 0x000160B4 File Offset: 0x000142B4
59 private void DecodeRawData()
60 {
61 if (this._raw != null)
62 {
63 string text;
65 return;
66 }
67 }
68
69 // Token: 0x060005AA RID: 1450 RVA: 0x000160D4 File Offset: 0x000142D4
70 private static string Canonize(string s)
71 {
72 /*
73An exception occurred when decompiling this method (060005AA)
74
75ICSharpCode.Decompiler.DecompilerException: Error decompiling System.String System.Security.Cryptography.X509Certificates.X500DistinguishedName::Canonize(System.String)
76
77 ---> System.Exception: Basic block has to end with unconditional control flow.
78{
79 IL_0020:
80 stloc:bool(var_8_28, call:bool(char::IsWhiteSpace, ldloc:string(var_5), ldc.i4:int32(0)))
81 stloc:char(var_9_37, call:char(char::ToUpperInvariant, callgetter:char(string::get_Chars, ldloc:string(var_5), ldc.i4:int32(0))))
82 stloc:int32(var_11_40, ldfld:int32(string::_stringLength, ldloc:string(var_5)))
83}
84
85 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
86 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
87 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
88 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
89 --- End of inner exception stack trace ---
90 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
91 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
92*/;
93 }
94
95 // Token: 0x060005AB RID: 1451 RVA: 0x00016124 File Offset: 0x00014324
97 {
98 int num = 1;
99 if (name1 != null)
100 {
101 if (num == 0 || name1.canonEncoding != null)
102 {
103 }
104 string newLine = Environment.NewLine;
105 if (newLine == null || newLine != null)
106 {
107 string[] array;
108 string text;
110 }
111 }
112 throw new ArrayTypeMismatchException();
113 }
114
115 // Token: 0x040004ED RID: 1261
116 private string name;
117
118 // Token: 0x040004EE RID: 1262
119 private byte[] canonEncoding;
120 }
121}
class f__AnonymousType0<< Count > j__TPar
static string NewLine
static bool AreEqual(X500DistinguishedName name1, X500DistinguishedName name2)