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
ListenerPrefix.cs
Go to the documentation of this file.
1using System;
2
3namespace System.Net
4{
5 // Token: 0x02000262 RID: 610
6 internal sealed class ListenerPrefix
7 {
8 // Token: 0x0600106D RID: 4205 RVA: 0x00033F84 File Offset: 0x00032184
9 public ListenerPrefix(string prefix)
10 {
11 this.original = prefix;
12 this.Parse(prefix);
13 }
14
15 // Token: 0x0600106E RID: 4206 RVA: 0x00033FA8 File Offset: 0x000321A8
16 public override string ToString()
17 {
18 return this.original;
19 }
20
21 // Token: 0x170003AC RID: 940
22 // (get) Token: 0x0600106F RID: 4207 RVA: 0x00033FBC File Offset: 0x000321BC
23 // (set) Token: 0x06001070 RID: 4208 RVA: 0x00033FD0 File Offset: 0x000321D0
25 {
26 get
27 {
28 return this.addresses;
29 }
30 set
31 {
33 }
34 }
35
36 // Token: 0x170003AD RID: 941
37 // (get) Token: 0x06001071 RID: 4209 RVA: 0x00033FE4 File Offset: 0x000321E4
38 public bool Secure
39 {
40 get
41 {
42 return this.secure;
43 }
44 }
45
46 // Token: 0x170003AE RID: 942
47 // (get) Token: 0x06001072 RID: 4210 RVA: 0x00033FF8 File Offset: 0x000321F8
48 public string Host
49 {
50 get
51 {
52 return this.host;
53 }
54 }
55
56 // Token: 0x170003AF RID: 943
57 // (get) Token: 0x06001073 RID: 4211 RVA: 0x0003400C File Offset: 0x0003220C
58 public int Port
59 {
60 get
61 {
62 /*
63An exception occurred when decompiling this method (06001073)
64
65ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Int32 System.Net.ListenerPrefix::get_Port()
66
67 ---> System.Exception: Basic block has to end with unconditional control flow.
68{
69 Block_0:
70 stloc:uint16(var_0_06, ldfld:uint16(ListenerPrefix::port, ldloc:ListenerPrefix(this)))
71}
72
73 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
74 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
75 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
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 88
77 --- End of inner exception stack trace ---
78 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
79 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
80*/;
81 }
82 }
83
84 // Token: 0x170003B0 RID: 944
85 // (get) Token: 0x06001074 RID: 4212 RVA: 0x00034020 File Offset: 0x00032220
86 public string Path
87 {
88 get
89 {
90 return this.path;
91 }
92 }
93
94 // Token: 0x06001075 RID: 4213 RVA: 0x00034034 File Offset: 0x00032234
95 public override bool Equals(object o)
96 {
97 if (o != null)
98 {
99 }
100 string text = this.original;
101 bool flag;
102 return flag;
103 }
104
105 // Token: 0x06001076 RID: 4214 RVA: 0x00034050 File Offset: 0x00032250
106 public override int GetHashCode()
107 {
108 /*
109An exception occurred when decompiling this method (06001076)
110
111ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Int32 System.Net.ListenerPrefix::GetHashCode()
112
113 ---> System.Exception: Basic block has to end with unconditional control flow.
114{
115 Block_0:
116 stloc:string(var_0_06, ldfld:string(ListenerPrefix::original, ldloc:ListenerPrefix(this)))
117}
118
119 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
120 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
121 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
122 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
123 --- End of inner exception stack trace ---
124 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
125 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
126*/;
127 }
128
129 // Token: 0x06001077 RID: 4215 RVA: 0x00034064 File Offset: 0x00032264
130 private void Parse(string uri)
131 {
132 bool flag = uri.StartsWith("https://");
133 int num = 1;
134 this.secure = num != 0;
135 }
136
137 // Token: 0x06001078 RID: 4216 RVA: 0x00034154 File Offset: 0x00032354
138 public static void CheckUri(string uri)
139 {
140 if (uri != null)
141 {
142 bool flag = uri.StartsWith("http://");
143 bool flag2 = uri.StartsWith("https://");
144 int stringLength = uri._stringLength;
145 int num = 58;
146 int num2 = uri.IndexOf((char)num);
147 int num3 = 58;
148 int num4 = uri.IndexOf((char)num3, 0, stringLength);
149 char c = uri[0];
150 int num5 = uri.IndexOf("]:");
151 int num6 = 47;
152 int num7 = uri.IndexOf((char)num6, 0, stringLength);
153 string text = uri.Substring(num6, 0);
154 long num8 = 0L;
155 int num9 = int.Parse(text);
156 int stringLength2 = uri._stringLength;
157 char c2 = uri[(int)num8];
158 return;
159 }
160 }
161
162 // Token: 0x04000CEE RID: 3310
163 private string original;
164
165 // Token: 0x04000CEF RID: 3311
166 private string host;
167
168 // Token: 0x04000CF0 RID: 3312
169 private ushort port;
170
171 // Token: 0x04000CF1 RID: 3313
172 private string path;
173
174 // Token: 0x04000CF2 RID: 3314
175 private bool secure;
176
177 // Token: 0x04000CF3 RID: 3315
179
180 // Token: 0x04000CF4 RID: 3316
182 }
183}
class f__AnonymousType0<< Count > j__TPar
override string ToString()
override bool Equals(object o)
ListenerPrefix(string prefix)
static void CheckUri(string uri)