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
UriBuilder.cs
Go to the documentation of this file.
1using System;
2
3namespace System
4{
5 // Token: 0x0200007E RID: 126
6 public class UriBuilder
7 {
8 // Token: 0x060001E1 RID: 481 RVA: 0x0000650C File Offset: 0x0000470C
9 public UriBuilder(global::System.Uri uri)
10 {
11 do
12 {
13 this._changed = true;
14 this._host = "localhost";
15 this._path = "/";
16 this._scheme = "http";
17 if ("http" == null)
18 {
19 }
20 this._schemeDelimiter = "http";
21 base..ctor();
22 }
23 while (uri == null);
24 this.Init(uri);
25 }
26
27 // Token: 0x060001E2 RID: 482 RVA: 0x00006564 File Offset: 0x00004764
28 private void Init(global::System.Uri uri)
29 {
30 int num = 1;
31 string fragment = uri.Fragment;
32 this._fragment = fragment;
33 string query = uri.Query;
35 string host = uri.Host;
36 this._host = host;
37 string absolutePath = uri.AbsolutePath;
39 int port = uri.Port;
40 this._port = port;
41 string scheme = uri.Scheme;
43 bool hasAuthority = uri.HasAuthority;
44 if (num == 0)
45 {
46 }
47 }
48
49 // Token: 0x17000062 RID: 98
50 // (set) Token: 0x060001E3 RID: 483 RVA: 0x00006638 File Offset: 0x00004838
51 public string Path
52 {
53 set
54 {
55 if (value == null || value._stringLength == 0)
56 {
57 }
58 string text2;
59 string text = global::System.Uri.InternalEscapeString(text2);
61 this._changed = true;
62 }
63 }
64
65 // Token: 0x17000063 RID: 99
66 // (set) Token: 0x060001E4 RID: 484 RVA: 0x00006668 File Offset: 0x00004868
67 public string Query
68 {
69 set
70 {
71 if (value == null)
72 {
73 }
74 string text;
76 this._changed = true;
77 }
78 }
79
80 // Token: 0x17000064 RID: 100
81 // (get) Token: 0x060001E5 RID: 485 RVA: 0x00006688 File Offset: 0x00004888
82 public global::System.Uri Uri
83 {
84 get
85 {
86 if (this._changed)
87 {
88 }
89 return this._uri;
90 }
91 }
92
93 // Token: 0x060001E6 RID: 486 RVA: 0x000066A4 File Offset: 0x000048A4
94 public override bool Equals(object rparam)
95 {
96 if (rparam != null)
97 {
98 global::System.Uri uri = this.Uri;
99 return;
100 }
101 }
102
103 // Token: 0x060001E7 RID: 487 RVA: 0x000066BC File Offset: 0x000048BC
104 public override int GetHashCode()
105 {
106 /*
107An exception occurred when decompiling this method (060001E7)
108
109ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Int32 System.UriBuilder::GetHashCode()
110
111 ---> System.Exception: Basic block has to end with unconditional control flow.
112{
113 Block_0:
114 stloc:Uri(var_0_06, callgetter:Uri(UriBuilder::get_Uri, ldloc:UriBuilder(this)))
115}
116
117 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
118 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
119 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
120 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
121 --- End of inner exception stack trace ---
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 92
123 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
124*/;
125 }
126
127 // Token: 0x060001E8 RID: 488 RVA: 0x000066D0 File Offset: 0x000048D0
128 private void SetFieldsFromUri(global::System.Uri uri)
129 {
130 int num = 1;
131 string fragment = uri.Fragment;
132 this._fragment = fragment;
133 string query = uri.Query;
135 string host = uri.Host;
136 this._host = host;
137 string absolutePath = uri.AbsolutePath;
139 int port = uri.Port;
140 this._port = port;
141 string scheme = uri.Scheme;
143 bool hasAuthority = uri.HasAuthority;
144 if (num == 0)
145 {
146 }
147 }
148
149 // Token: 0x060001E9 RID: 489 RVA: 0x0000679C File Offset: 0x0000499C
150 public override string ToString()
151 {
152 if (this._username._stringLength == 0)
153 {
154 int stringLength = this._password._stringLength;
155 }
156 string scheme = this._scheme;
157 string text;
158 if (scheme._stringLength != 0)
159 {
160 global::System.UriParser syntax = global::System.UriParser.GetSyntax(scheme);
161 if (syntax != null)
162 {
163 global::System.UriSyntaxFlags flags = syntax.m_Flags;
164 if (this._host._stringLength != 0)
165 {
166 goto IL_005A;
167 }
168 }
169 int stringLength2 = this._host._stringLength;
170 if (stringLength2 == 0)
171 {
172 return text;
173 }
174 IL_005A:
175 if (stringLength2 == 0)
176 {
177 }
178 }
179 string scheme2 = this._scheme;
180 if (scheme2._stringLength != 0)
181 {
182 string schemeDelimiter = this._schemeDelimiter;
183 return scheme2 + schemeDelimiter;
184 }
185 string username = this._username;
186 if (username == null || username != null)
187 {
188 string password = this._password;
189 int stringLength3 = password._stringLength;
190 string text2 = ":" + password;
191 if (text2 == null)
192 {
193 return text2;
194 }
195 int stringLength4 = this._username._stringLength;
196 string host = this._host;
197 if (host == null || host != null)
198 {
199 int port = this._port;
200 int stringLength5 = this._host._stringLength;
201 string text4;
202 string text3 = ":" + text4;
203 if (text3 == null)
204 {
205 return text3;
206 }
207 int stringLength6 = this._host._stringLength;
208 string path = this._path;
209 if (path._stringLength != 0)
210 {
211 long num = 0L;
212 char c = path[(int)num];
213 }
214 string path2 = this._path;
215 if (path2 == null || path2 != null)
216 {
217 string query = this._query;
218 if (query == null || query != null)
219 {
220 string fragment = this._fragment;
221 if (fragment == null || fragment != null)
222 {
223 return text;
224 }
225 }
226 }
227 }
228 }
229 throw new ArrayTypeMismatchException();
230 }
231
232 // Token: 0x04000160 RID: 352
233 private bool _changed;
234
235 // Token: 0x04000161 RID: 353
236 private string _fragment;
237
238 // Token: 0x04000162 RID: 354
239 private string _host;
240
241 // Token: 0x04000163 RID: 355
242 private string _password;
243
244 // Token: 0x04000164 RID: 356
245 private string _path;
246
247 // Token: 0x04000165 RID: 357
248 private int _port;
249
250 // Token: 0x04000166 RID: 358
251 private string _query;
252
253 // Token: 0x04000167 RID: 359
254 private string _scheme;
255
256 // Token: 0x04000168 RID: 360
257 private string _schemeDelimiter;
258
259 // Token: 0x04000169 RID: 361
260 private global::System.Uri _uri;
261
262 // Token: 0x0400016A RID: 362
263 private string _username;
264 }
265}
class f__AnonymousType0<< Count > j__TPar
global::System.Uri _uri
void Init(global::System.Uri uri)
Definition UriBuilder.cs:28
void SetFieldsFromUri(global::System.Uri uri)
string _schemeDelimiter
override bool Equals(object rparam)
Definition UriBuilder.cs:94
override int GetHashCode()
override string ToString()
UriBuilder(global::System.Uri uri)
Definition UriBuilder.cs:9
global::System.Uri Uri
Definition UriBuilder.cs:83