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
X509Certificate2Collection.cs
Go to the documentation of this file.
1using System;
5
7{
8 // Token: 0x02000106 RID: 262
10 {
11 // Token: 0x060005D1 RID: 1489 RVA: 0x000168FC File Offset: 0x00014AFC
13 {
14 }
15
16 // Token: 0x060005D2 RID: 1490 RVA: 0x00016910 File Offset: 0x00014B10
18 {
19 this.AddRange(certificates);
20 }
21
22 // Token: 0x17000128 RID: 296
23 public X509Certificate2 this[int index]
24 {
25 get
26 {
27 ArrayList list = this._list;
28 if (this._list != null)
29 {
30 }
31 throw new InvalidCastException();
32 }
33 }
34
35 // Token: 0x060005D4 RID: 1492 RVA: 0x00016954 File Offset: 0x00014B54
36 public int Add(X509Certificate2 certificate)
37 {
38 /*
39An exception occurred when decompiling this method (060005D4)
40
41ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Int32 System.Security.Cryptography.X509Certificates.X509Certificate2Collection::Add(System.Security.Cryptography.X509Certificates.X509Certificate2)
42
43 ---> System.Exception: Basic block has to end with unconditional control flow.
44{
45 Block_0:
46 stloc:ArrayList(var_0_09, ldfld:ArrayList(CollectionBase::_list, ldloc:X509Certificate2Collection[exp:CollectionBase](this)))
47}
48
49 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
50 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
51 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
52 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
53 --- End of inner exception stack trace ---
54 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
55 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
56*/;
57 }
58
59 // Token: 0x060005D5 RID: 1493 RVA: 0x0001696C File Offset: 0x00014B6C
60 [MonoTODO("Method isn't transactional (like documented)")]
61 public void AddRange(X509Certificate2Collection certificates)
62 {
63 while (certificates == null)
64 {
65 }
66 ArrayList list = this._list;
67 }
68
69 // Token: 0x060005D6 RID: 1494 RVA: 0x00016984 File Offset: 0x00014B84
70 public bool Contains(X509Certificate2 certificate)
71 {
72 if (certificate != null)
73 {
74 ArrayList list = this._list;
75 long num = 0L;
76 if (list != null)
77 {
78 }
79 if (num == 0L)
80 {
81 throw new InvalidCastException();
82 }
83 }
84 throw new OutOfMemoryException();
85 }
86
87 // Token: 0x060005D7 RID: 1495 RVA: 0x000169BC File Offset: 0x00014BBC
89 {
90 if (x.Extensions["2.5.29.14"] != null)
91 {
92 }
93 PublicKey publicKey = x.PublicKey;
94 string text;
95 return text;
96 }
97
98 // Token: 0x060005D8 RID: 1496 RVA: 0x000169E8 File Offset: 0x00014BE8
99 [MonoTODO("Does not support X509FindType.FindByTemplateName, FindByApplicationPolicy and FindByCertificatePolicy")]
101 {
102 if (findValue == null)
103 {
104 throw new ArrayTypeMismatchException();
105 }
107 ArrayList list = this._list;
108 if (list != null)
109 {
110 }
111 int num;
113 if (num != 0 && x509ExtensionCollection["2.5.29.15"] != null)
114 {
117 int num2;
118 while (num2 != 0)
119 {
120 }
122 while (x509Extension == null)
123 {
124 }
125 }
126 long num3 = 0L;
127 if (list != null)
128 {
129 }
130 if (num3 == 0L)
131 {
132 throw new InvalidCastException();
133 }
134 throw new OutOfMemoryException();
135 }
136
137 // Token: 0x060005D9 RID: 1497 RVA: 0x00002050 File Offset: 0x00000250
139 {
140 throw new global::Cpp2IlInjected.AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
141 }
142
143 // Token: 0x060005DA RID: 1498 RVA: 0x00016AC4 File Offset: 0x00014CC4
144 // Note: this type is marked as 'beforefieldinit'.
146 {
147 string newLine = Environment.NewLine;
148 if (newLine == null || newLine != null)
149 {
150 return;
151 }
152 throw new ArrayTypeMismatchException();
153 }
154
155 // Token: 0x040004FD RID: 1277
156 private static string[] newline_split;
157 }
158}
class f__AnonymousType0<< Count > j__TPar
static string NewLine
static CultureInfo InvariantCulture
X509Certificate2Collection Find(X509FindType findType, object findValue, bool validOnly)