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
CredentialHostKey.cs
Go to the documentation of this file.
1using System;
3
4namespace System.Net
5{
6 // Token: 0x0200018B RID: 395
7 internal class CredentialHostKey
8 {
9 // Token: 0x06000A2E RID: 2606 RVA: 0x000226E8 File Offset: 0x000208E8
10 internal CredentialHostKey(string host, int port, string authenticationType)
11 {
12 this.Port = port;
13 this.Host = host;
15 }
16
17 // Token: 0x06000A2F RID: 2607 RVA: 0x00022710 File Offset: 0x00020910
18 internal bool Match(string host, int port, string authenticationType)
19 {
20 /*
21An exception occurred when decompiling this method (06000A2F)
22
23ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean System.Net.CredentialHostKey::Match(System.String,System.Int32,System.String)
24
25 ---> System.Exception: Basic block has to end with unconditional control flow.
26{
27 IL_0028:
28 stloc:int32(var_2_2E, ldfld:int32(CredentialHostKey::Port, ldloc:CredentialHostKey(this)))
29}
30
31 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
32 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
33 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
34 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
35 --- End of inner exception stack trace ---
36 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
37 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
38*/;
39 }
40
41 // Token: 0x06000A30 RID: 2608 RVA: 0x0002274C File Offset: 0x0002094C
42 public override int GetHashCode()
43 {
44 if (this.m_ComputedHashCode)
45 {
46 return this.m_HashCode;
47 }
48 string text = this.AuthenticationType.ToUpperInvariant();
49 string text2 = this.Host.ToUpperInvariant();
50 int num = 1;
51 int num2;
53 this.m_ComputedHashCode = num != 0;
54 return num2;
55 }
56
57 // Token: 0x06000A31 RID: 2609 RVA: 0x00022794 File Offset: 0x00020994
58 public override bool Equals(object comparand)
59 {
60 /*
61An exception occurred when decompiling this method (06000A31)
62
63ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean System.Net.CredentialHostKey::Equals(System.Object)
64
65 ---> System.Exception: Basic block has to end with unconditional control flow.
66{
67 IL_001A:
68 stloc:int32(var_5_20, ldfld:int32(CredentialHostKey::Port, ldloc:CredentialHostKey(this)))
69}
70
71 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
72 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
73 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
74 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
75 --- End of inner exception stack trace ---
76 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
77 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
78*/;
79 }
80
81 // Token: 0x06000A32 RID: 2610 RVA: 0x000227C4 File Offset: 0x000209C4
82 public override string ToString()
83 {
84 if ("[" == null || "[" != null)
85 {
86 string host = this.Host;
87 int stringLength = host._stringLength;
89 string text;
90 if ((text == null || text != null) && ("]:" == null || "]:" != null))
91 {
92 string host2 = this.Host;
93 if ((host2 == null || host2 != null) && (":" == null || ":" != null))
94 {
96 string text2;
97 if (text2 != null)
98 {
99 }
100 if (":" == null || ":" != null)
101 {
103 if (text3 == null || text3 != null)
104 {
105 string text4;
106 return text4;
107 }
108 }
109 }
110 }
111 }
112 throw new ArrayTypeMismatchException();
113 }
114
115 // Token: 0x040007BF RID: 1983
116 internal string Host;
117
118 // Token: 0x040007C0 RID: 1984
119 internal string AuthenticationType;
120
121 // Token: 0x040007C1 RID: 1985
122 internal int Port;
123
124 // Token: 0x040007C2 RID: 1986
125 private int m_HashCode;
126
127 // Token: 0x040007C3 RID: 1987
128 private bool m_ComputedHashCode;
129 }
130}
class f__AnonymousType0<< Count > j__TPar
bool Match(string host, int port, string authenticationType)
override bool Equals(object comparand)
CredentialHostKey(string host, int port, string authenticationType)
static string ToString(object objectValue)