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
CredentialCache.cs
Go to the documentation of this file.
1using System;
3
4namespace System.Net
5{
6 // Token: 0x02000188 RID: 392
8 {
9 // Token: 0x1700020C RID: 524
10 // (get) Token: 0x06000A1D RID: 2589 RVA: 0x000223F0 File Offset: 0x000205F0
11 internal bool IsDefaultInCache
12 {
13 get
14 {
15 /*
16An exception occurred when decompiling this method (06000A1D)
17
18ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean System.Net.CredentialCache::get_IsDefaultInCache()
19
20 ---> System.Exception: Basic block has to end with unconditional control flow.
21{
22 Block_0:
23 stloc:int32(var_0_06, ldfld:int32(CredentialCache::m_NumbDefaultCredInCache, ldloc:CredentialCache(this)))
24}
25
26 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
27 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
28 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
29 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
30 --- End of inner exception stack trace ---
31 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
32 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
33*/;
34 }
35 }
36
37 // Token: 0x06000A1E RID: 2590 RVA: 0x00022404 File Offset: 0x00020604
39 {
40 }
41
42 // Token: 0x06000A1F RID: 2591 RVA: 0x00022418 File Offset: 0x00020618
43 public void Add(global::System.Uri uriPrefix, string authType, NetworkCredential cred)
44 {
45 if (!true)
46 {
47 }
48 if (authType != null)
49 {
50 if (cred != null)
51 {
52 }
53 int version = this.m_version;
54 this.m_version = version;
56 if (cred != null)
57 {
60 }
61 return;
62 }
64 }
65
66 // Token: 0x06000A20 RID: 2592 RVA: 0x00022460 File Offset: 0x00020660
67 public void Add(string host, int port, string authenticationType, NetworkCredential credential)
68 {
69 if (host == null)
70 {
71 return;
72 }
73 if (authenticationType == null)
74 {
75 return;
76 }
77 if (host._stringLength != 0)
78 {
79 if (credential != null)
80 {
81 }
82 int version = this.m_version;
83 this.m_version = version;
85 if (credential != null)
86 {
89 }
90 return;
91 }
93 }
94
95 // Token: 0x06000A21 RID: 2593 RVA: 0x000224BC File Offset: 0x000206BC
96 public void Remove(global::System.Uri uriPrefix, string authType)
97 {
98 if (!true)
99 {
100 }
101 if (authType != null)
102 {
103 int version = this.m_version;
104 this.m_version = version;
105 if (this.cache != null)
106 {
109 }
111 return;
112 }
113 }
114
115 // Token: 0x06000A22 RID: 2594 RVA: 0x000224FC File Offset: 0x000206FC
116 public void Remove(string host, int port, string authenticationType)
117 {
118 if (authenticationType != null && host != null)
119 {
120 int version = this.m_version;
121 this.m_version = version;
122 if (this.cacheForHosts != null)
123 {
126 }
128 return;
129 }
130 }
131
132 // Token: 0x06000A23 RID: 2595 RVA: 0x0002253C File Offset: 0x0002073C
133 public NetworkCredential GetCredential(global::System.Uri uriPrefix, string authType)
134 {
135 do
136 {
137 if (!true)
138 {
139 }
140 }
141 while (authType == null);
143 if (hashtable != null)
144 {
145 }
146 int count = hashtable._count;
147 if (hashtable != null)
148 {
149 }
150 throw new InvalidCastException();
151 }
152
153 // Token: 0x06000A24 RID: 2596 RVA: 0x00022574 File Offset: 0x00020774
154 public NetworkCredential GetCredential(string host, int port, string authenticationType)
155 {
156 if (host == null)
157 {
158 return "host";
159 }
160 if (authenticationType != null && host._stringLength != 0)
161 {
163 if (hashtable != null)
164 {
165 }
166 while (hashtable == null)
167 {
168 }
169 throw new InvalidCastException();
170 }
171 throw new ArrayTypeMismatchException();
172 }
173
174 // Token: 0x06000A25 RID: 2597 RVA: 0x000225B8 File Offset: 0x000207B8
176 {
177 /*
178An exception occurred when decompiling this method (06000A25)
179
180ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Collections.IEnumerator System.Net.CredentialCache::GetEnumerator()
181
182 ---> System.Exception: Basic block has to end with unconditional control flow.
183{
184 Block_0:
185 stloc:Hashtable(var_0_06, ldfld:Hashtable(CredentialCache::cache, ldloc:CredentialCache(this)))
186 stloc:Hashtable(var_1_0D, ldfld:Hashtable(CredentialCache::cacheForHosts, ldloc:CredentialCache(this)))
187 stloc:int32(var_2_14, ldfld:int32(CredentialCache::m_version, ldloc:CredentialCache(this)))
188}
189
190 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
191 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
192 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
193 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
194 --- End of inner exception stack trace ---
195 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
196 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
197*/;
198 }
199
200 // Token: 0x1700020D RID: 525
201 // (get) Token: 0x06000A26 RID: 2598 RVA: 0x000225DC File Offset: 0x000207DC
203 {
204 get
205 {
206 if (!true)
207 {
208 }
209 return 1;
210 }
211 }
212
213 // Token: 0x1700020E RID: 526
214 // (get) Token: 0x06000A27 RID: 2599 RVA: 0x000225F0 File Offset: 0x000207F0
216 {
217 get
218 {
219 if (!true)
220 {
221 }
222 return 1;
223 }
224 }
225
226 // Token: 0x040007B6 RID: 1974
228
229 // Token: 0x040007B7 RID: 1975
231
232 // Token: 0x040007B8 RID: 1976
233 internal int m_version;
234
235 // Token: 0x040007B9 RID: 1977
237
238 // Token: 0x02000189 RID: 393
240 {
241 // Token: 0x06000A28 RID: 2600 RVA: 0x00022604 File Offset: 0x00020804
243 {
244 int num = 1;
245 this.m_index = num;
246 base..ctor();
248 ICredentials[] array = this.m_array;
249 }
250
251 // Token: 0x1700020F RID: 527
252 // (get) Token: 0x06000A29 RID: 2601 RVA: 0x00022640 File Offset: 0x00020840
254 {
255 get
256 {
257 ICredentials[] array = this.m_array;
259 int version = this.m_version;
260 int version2 = cache.m_version;
261 return "Enumeration has either not started or has already finished.";
262 }
263 }
264
265 // Token: 0x06000A2A RID: 2602 RVA: 0x0002267C File Offset: 0x0002087C
267 {
268 /*
269An exception occurred when decompiling this method (06000A2A)
270
271ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean System.Net.CredentialCache/CredentialEnumerator::System.Collections.IEnumerator.MoveNext()
272
273 ---> System.Exception: Basic block has to end with unconditional control flow.
274{
275 Block_0:
276 stloc:CredentialCache(var_0_06, ldfld:CredentialCache(CredentialEnumerator::m_cache, ldloc:CredentialEnumerator(this)))
277 stloc:int32(var_1_0D, ldfld:int32(CredentialEnumerator::m_version, ldloc:CredentialEnumerator(this)))
278 stloc:int32(var_2_14, ldfld:int32(CredentialCache::m_version, ldloc:CredentialCache(var_0_06)))
279 stloc:int32(var_3_1B, ldfld:int32(CredentialEnumerator::m_index, ldloc:CredentialEnumerator(this)))
280 stloc:class System.Net.ICredentials[](var_4_22, ldfld:class System.Net.ICredentials[](CredentialEnumerator::m_array, ldloc:CredentialEnumerator(this)))
281 stloc:string(var_5_2E, call:string(SR::GetString, ldstr:string("Collection was modified; enumeration operation may not execute.")))
282}
283
284 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
285 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
286 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
287 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
288 --- End of inner exception stack trace ---
289 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
290 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
291*/;
292 }
293
294 // Token: 0x06000A2B RID: 2603 RVA: 0x000226B8 File Offset: 0x000208B8
296 {
297 }
298
299 // Token: 0x040007BA RID: 1978
301
302 // Token: 0x040007BB RID: 1979
304
305 // Token: 0x040007BC RID: 1980
306 private int m_index;
307
308 // Token: 0x040007BD RID: 1981
309 private int m_version;
310 }
311 }
312}
class f__AnonymousType0<< Count > j__TPar
CredentialEnumerator(CredentialCache cache, Hashtable table, Hashtable hostTable, int version)
NetworkCredential GetCredential(string host, int port, string authenticationType)
static ICredentials DefaultCredentials
static NetworkCredential DefaultNetworkCredentials
void Remove(global::System.Uri uriPrefix, string authType)
NetworkCredential GetCredential(global::System.Uri uriPrefix, string authType)
void Remove(string host, int port, string authenticationType)
void Add(global::System.Uri uriPrefix, string authType, NetworkCredential cred)
void Add(string host, int port, string authenticationType, NetworkCredential credential)