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
WebClient.cs
Go to the documentation of this file.
1using System;
6using System.IO;
11using System.Text;
14using Cpp2IlInjected;
15
16namespace System.Net
17{
18 // Token: 0x0200015A RID: 346
19 public class WebClient : global::System.ComponentModel.Component
20 {
21 // Token: 0x060008C9 RID: 2249 RVA: 0x0001EC44 File Offset: 0x0001CE44
22 public WebClient()
23 {
24 Encoding @default = Encoding.Default;
25 this._encoding = @default;
27 if (!true)
28 {
29 }
30 base..ctor();
31 Type type;
32 bool flag = base.GetType() == type;
33 GC.SuppressFinalize(this);
34 }
35
36 // Token: 0x14000001 RID: 1
37 // (add) Token: 0x060008CA RID: 2250 RVA: 0x0001EC84 File Offset: 0x0001CE84
38 // (remove) Token: 0x060008CB RID: 2251 RVA: 0x0001ECA8 File Offset: 0x0001CEA8
40 {
42 add
43 {
44 if (Delegate.Combine(this.DownloadStringCompleted, value) != null)
45 {
46 }
47 }
49 remove
50 {
51 if (Delegate.Remove(this.DownloadStringCompleted, value) != null)
52 {
53 }
54 }
55 }
56
57 // Token: 0x14000002 RID: 2
58 // (add) Token: 0x060008CC RID: 2252 RVA: 0x0001ECCC File Offset: 0x0001CECC
59 // (remove) Token: 0x060008CD RID: 2253 RVA: 0x0001ECF0 File Offset: 0x0001CEF0
61 {
63 add
64 {
65 if (Delegate.Combine(this.DownloadDataCompleted, value) != null)
66 {
67 }
68 }
70 remove
71 {
72 if (Delegate.Remove(this.DownloadDataCompleted, value) != null)
73 {
74 }
75 }
76 }
77
78 // Token: 0x14000003 RID: 3
79 // (add) Token: 0x060008CE RID: 2254 RVA: 0x0001ED14 File Offset: 0x0001CF14
80 // (remove) Token: 0x060008CF RID: 2255 RVA: 0x0001ED38 File Offset: 0x0001CF38
81 public event global::System.ComponentModel.AsyncCompletedEventHandler DownloadFileCompleted
82 {
84 add
85 {
86 if (Delegate.Combine(this.DownloadFileCompleted, value) != null)
87 {
88 }
89 }
91 remove
92 {
93 if (Delegate.Remove(this.DownloadFileCompleted, value) != null)
94 {
95 }
96 }
97 }
98
99 // Token: 0x14000004 RID: 4
100 // (add) Token: 0x060008D0 RID: 2256 RVA: 0x0001ED5C File Offset: 0x0001CF5C
101 // (remove) Token: 0x060008D1 RID: 2257 RVA: 0x0001ED80 File Offset: 0x0001CF80
103 {
105 add
106 {
107 if (Delegate.Combine(this.UploadStringCompleted, value) != null)
108 {
109 }
110 }
112 remove
113 {
114 if (Delegate.Remove(this.UploadStringCompleted, value) != null)
115 {
116 }
117 }
118 }
119
120 // Token: 0x14000005 RID: 5
121 // (add) Token: 0x060008D2 RID: 2258 RVA: 0x0001EDA4 File Offset: 0x0001CFA4
122 // (remove) Token: 0x060008D3 RID: 2259 RVA: 0x0001EDC8 File Offset: 0x0001CFC8
124 {
126 add
127 {
128 if (Delegate.Combine(this.UploadDataCompleted, value) != null)
129 {
130 }
131 }
133 remove
134 {
135 if (Delegate.Remove(this.UploadDataCompleted, value) != null)
136 {
137 }
138 }
139 }
140
141 // Token: 0x14000006 RID: 6
142 // (add) Token: 0x060008D4 RID: 2260 RVA: 0x0001EDEC File Offset: 0x0001CFEC
143 // (remove) Token: 0x060008D5 RID: 2261 RVA: 0x0001EE10 File Offset: 0x0001D010
145 {
147 add
148 {
149 if (Delegate.Combine(this.UploadFileCompleted, value) != null)
150 {
151 }
152 }
154 remove
155 {
156 if (Delegate.Remove(this.UploadFileCompleted, value) != null)
157 {
158 }
159 }
160 }
161
162 // Token: 0x14000007 RID: 7
163 // (add) Token: 0x060008D6 RID: 2262 RVA: 0x0001EE34 File Offset: 0x0001D034
164 // (remove) Token: 0x060008D7 RID: 2263 RVA: 0x0001EE58 File Offset: 0x0001D058
166 {
168 add
169 {
170 if (Delegate.Combine(this.UploadValuesCompleted, value) != null)
171 {
172 }
173 }
175 remove
176 {
177 if (Delegate.Remove(this.UploadValuesCompleted, value) != null)
178 {
179 }
180 }
181 }
182
183 // Token: 0x14000008 RID: 8
184 // (add) Token: 0x060008D8 RID: 2264 RVA: 0x0001EE7C File Offset: 0x0001D07C
185 // (remove) Token: 0x060008D9 RID: 2265 RVA: 0x0001EEA0 File Offset: 0x0001D0A0
187 {
189 add
190 {
191 if (Delegate.Combine(this.OpenReadCompleted, value) != null)
192 {
193 }
194 }
196 remove
197 {
198 if (Delegate.Remove(this.OpenReadCompleted, value) != null)
199 {
200 }
201 }
202 }
203
204 // Token: 0x14000009 RID: 9
205 // (add) Token: 0x060008DA RID: 2266 RVA: 0x0001EEC4 File Offset: 0x0001D0C4
206 // (remove) Token: 0x060008DB RID: 2267 RVA: 0x0001EEE8 File Offset: 0x0001D0E8
208 {
210 add
211 {
212 if (Delegate.Combine(this.OpenWriteCompleted, value) != null)
213 {
214 }
215 }
217 remove
218 {
219 if (Delegate.Remove(this.OpenWriteCompleted, value) != null)
220 {
221 }
222 }
223 }
224
225 // Token: 0x1400000A RID: 10
226 // (add) Token: 0x060008DC RID: 2268 RVA: 0x0001EF0C File Offset: 0x0001D10C
227 // (remove) Token: 0x060008DD RID: 2269 RVA: 0x0001EF30 File Offset: 0x0001D130
229 {
231 add
232 {
233 if (Delegate.Combine(this.DownloadProgressChanged, value) != null)
234 {
235 }
236 }
238 remove
239 {
240 if (Delegate.Remove(this.DownloadProgressChanged, value) != null)
241 {
242 }
243 }
244 }
245
246 // Token: 0x1400000B RID: 11
247 // (add) Token: 0x060008DE RID: 2270 RVA: 0x0001EF54 File Offset: 0x0001D154
248 // (remove) Token: 0x060008DF RID: 2271 RVA: 0x0001EF78 File Offset: 0x0001D178
250 {
252 add
253 {
254 if (Delegate.Combine(this.UploadProgressChanged, value) != null)
255 {
256 }
257 }
259 remove
260 {
261 if (Delegate.Remove(this.UploadProgressChanged, value) != null)
262 {
263 }
264 }
265 }
266
267 // Token: 0x060008E0 RID: 2272 RVA: 0x0001EF9C File Offset: 0x0001D19C
269 {
271 if (downloadStringCompleted != null)
272 {
273 IntPtr invoke_impl = downloadStringCompleted.invoke_impl;
274 IntPtr method_code = downloadStringCompleted.method_code;
275 IntPtr method = downloadStringCompleted.method;
276 return;
277 }
278 }
279
280 // Token: 0x060008E1 RID: 2273 RVA: 0x0001EFCC File Offset: 0x0001D1CC
282 {
284 if (downloadDataCompleted != null)
285 {
286 IntPtr invoke_impl = downloadDataCompleted.invoke_impl;
287 IntPtr method_code = downloadDataCompleted.method_code;
288 IntPtr method = downloadDataCompleted.method;
289 return;
290 }
291 }
292
293 // Token: 0x060008E2 RID: 2274 RVA: 0x0001EFFC File Offset: 0x0001D1FC
294 protected virtual void OnDownloadFileCompleted(global::System.ComponentModel.AsyncCompletedEventArgs e)
295 {
296 global::System.ComponentModel.AsyncCompletedEventHandler downloadFileCompleted = this.DownloadFileCompleted;
297 if (downloadFileCompleted != null)
298 {
299 IntPtr invoke_impl = downloadFileCompleted.invoke_impl;
300 IntPtr method_code = downloadFileCompleted.method_code;
301 IntPtr method = downloadFileCompleted.method;
302 return;
303 }
304 }
305
306 // Token: 0x060008E3 RID: 2275 RVA: 0x0001F02C File Offset: 0x0001D22C
308 {
310 if (downloadProgressChanged != null)
311 {
312 IntPtr invoke_impl = downloadProgressChanged.invoke_impl;
313 IntPtr method_code = downloadProgressChanged.method_code;
314 IntPtr method = downloadProgressChanged.method;
315 return;
316 }
317 }
318
319 // Token: 0x060008E4 RID: 2276 RVA: 0x0001F05C File Offset: 0x0001D25C
321 {
323 if (uploadStringCompleted != null)
324 {
325 IntPtr invoke_impl = uploadStringCompleted.invoke_impl;
326 IntPtr method_code = uploadStringCompleted.method_code;
327 IntPtr method = uploadStringCompleted.method;
328 return;
329 }
330 }
331
332 // Token: 0x060008E5 RID: 2277 RVA: 0x0001F08C File Offset: 0x0001D28C
334 {
336 if (uploadDataCompleted != null)
337 {
338 IntPtr invoke_impl = uploadDataCompleted.invoke_impl;
339 IntPtr method_code = uploadDataCompleted.method_code;
340 IntPtr method = uploadDataCompleted.method;
341 return;
342 }
343 }
344
345 // Token: 0x060008E6 RID: 2278 RVA: 0x0001F0BC File Offset: 0x0001D2BC
347 {
349 if (uploadFileCompleted != null)
350 {
351 IntPtr invoke_impl = uploadFileCompleted.invoke_impl;
352 IntPtr method_code = uploadFileCompleted.method_code;
353 IntPtr method = uploadFileCompleted.method;
354 return;
355 }
356 }
357
358 // Token: 0x060008E7 RID: 2279 RVA: 0x0001F0EC File Offset: 0x0001D2EC
360 {
362 if (uploadValuesCompleted != null)
363 {
364 IntPtr invoke_impl = uploadValuesCompleted.invoke_impl;
365 IntPtr method_code = uploadValuesCompleted.method_code;
366 IntPtr method = uploadValuesCompleted.method;
367 return;
368 }
369 }
370
371 // Token: 0x060008E8 RID: 2280 RVA: 0x0001F11C File Offset: 0x0001D31C
373 {
375 if (uploadProgressChanged != null)
376 {
377 IntPtr invoke_impl = uploadProgressChanged.invoke_impl;
378 IntPtr method_code = uploadProgressChanged.method_code;
379 IntPtr method = uploadProgressChanged.method;
380 return;
381 }
382 }
383
384 // Token: 0x060008E9 RID: 2281 RVA: 0x0001F14C File Offset: 0x0001D34C
386 {
388 if (openReadCompleted != null)
389 {
390 IntPtr invoke_impl = openReadCompleted.invoke_impl;
391 IntPtr method_code = openReadCompleted.method_code;
392 IntPtr method = openReadCompleted.method;
393 return;
394 }
395 }
396
397 // Token: 0x060008EA RID: 2282 RVA: 0x0001F17C File Offset: 0x0001D37C
399 {
401 if (openWriteCompleted != null)
402 {
403 IntPtr invoke_impl = openWriteCompleted.invoke_impl;
404 IntPtr method_code = openWriteCompleted.method_code;
405 IntPtr method = openWriteCompleted.method;
406 return;
407 }
408 }
409
410 // Token: 0x060008EB RID: 2283 RVA: 0x0001F1AC File Offset: 0x0001D3AC
411 private void StartOperation()
412 {
413 if (this._progress != null)
414 {
415 }
416 }
417
418 // Token: 0x060008EC RID: 2284 RVA: 0x0001F1C8 File Offset: 0x0001D3C8
419 private global::System.ComponentModel.AsyncOperation StartAsyncOperation(object userToken)
420 {
421 if (!this._initWebClientAsync)
422 {
424 }
425 global::System.ComponentModel.AsyncOperation asyncOperation = global::System.ComponentModel.AsyncOperationManager.CreateOperation(userToken);
426 this.StartOperation();
428 return asyncOperation;
429 }
430
431 // Token: 0x060008ED RID: 2285 RVA: 0x0001F1FC File Offset: 0x0001D3FC
432 private void EndOperation()
433 {
434 }
435
436 // Token: 0x170001EC RID: 492
437 // (get) Token: 0x060008EE RID: 2286 RVA: 0x0001F20C File Offset: 0x0001D40C
438 // (set) Token: 0x060008EF RID: 2287 RVA: 0x0001F220 File Offset: 0x0001D420
440 {
441 get
442 {
443 return this._encoding;
444 }
445 set
446 {
447 if (!true)
448 {
449 }
450 WebClient.ThrowIfNull(value, "Encoding");
452 }
453 }
454
455 // Token: 0x170001ED RID: 493
456 // (get) Token: 0x060008F0 RID: 2288 RVA: 0x0001F244 File Offset: 0x0001D444
457 // (set) Token: 0x060008F1 RID: 2289 RVA: 0x0001F264 File Offset: 0x0001D464
458 public string BaseAddress
459 {
460 get
461 {
462 /*
463An exception occurred when decompiling this method (060008F0)
464
465ICSharpCode.Decompiler.DecompilerException: Error decompiling System.String System.Net.WebClient::get_BaseAddress()
466
467 ---> System.Exception: Basic block has to end with unconditional control flow.
468{
469 IL_000A:
470 stloc:Uri(var_2_10, ldfld:Uri(WebClient::_baseAddress, ldloc:WebClient(this)))
471}
472
473 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
474 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
475 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
476 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
477 --- End of inner exception stack trace ---
478 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
479 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
480*/;
481 }
482 set
483 {
484 bool flag = string.IsNullOrEmpty(value);
485 }
486 }
487
488 // Token: 0x170001EE RID: 494
489 // (get) Token: 0x060008F2 RID: 2290 RVA: 0x0001F27C File Offset: 0x0001D47C
490 // (set) Token: 0x060008F3 RID: 2291 RVA: 0x0001F290 File Offset: 0x0001D490
492 {
493 get
494 {
495 return this._credentials;
496 }
497 set
498 {
500 }
501 }
502
503 // Token: 0x170001EF RID: 495
504 // (get) Token: 0x060008F4 RID: 2292 RVA: 0x0001F2A4 File Offset: 0x0001D4A4
505 // (set) Token: 0x060008F5 RID: 2293 RVA: 0x0001F2BC File Offset: 0x0001D4BC
507 {
508 get
509 {
510 /*
511An exception occurred when decompiling this method (060008F4)
512
513ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean System.Net.WebClient::get_UseDefaultCredentials()
514
515 ---> System.Exception: Basic block has to end with unconditional control flow.
516{
517 IL_0000:
518 stloc:ICredentials(var_0_06, ldfld:ICredentials(WebClient::_credentials, ldloc:WebClient(this)))
519 brtrue(IL_0000, ldc.i4:bool(1))
520}
521
522 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
523 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
524 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
525 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1846
526 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
527 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
528 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
529 --- End of inner exception stack trace ---
530 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
531 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
532*/;
533 }
534 set
535 {
536 if (!true)
537 {
538 }
539 }
540 }
541
542 // Token: 0x170001F0 RID: 496
543 // (get) Token: 0x060008F6 RID: 2294 RVA: 0x0001F2D8 File Offset: 0x0001D4D8
544 // (set) Token: 0x060008F7 RID: 2295 RVA: 0x0001F2EC File Offset: 0x0001D4EC
546 {
547 get
548 {
549 /*
550An exception occurred when decompiling this method (060008F6)
551
552ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Net.WebHeaderCollection System.Net.WebClient::get_Headers()
553
554 ---> System.Exception: Basic block has to end with unconditional control flow.
555{
556 IL_0000:
557 brtrue(IL_0000, ldfld:WebHeaderCollection[exp:bool](WebClient::_headers, ldloc:WebClient(this)))
558}
559
560 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
561 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
562 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
563 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1846
564 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
565 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
566 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
567 --- End of inner exception stack trace ---
568 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
569 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
570*/;
571 }
572 set
573 {
575 }
576 }
577
578 // Token: 0x170001F1 RID: 497
579 // (get) Token: 0x060008F8 RID: 2296 RVA: 0x0001F300 File Offset: 0x0001D500
580 // (set) Token: 0x060008F9 RID: 2297 RVA: 0x0001F314 File Offset: 0x0001D514
581 public global::System.Collections.Specialized.NameValueCollection QueryString
582 {
583 get
584 {
585 /*
586An exception occurred when decompiling this method (060008F8)
587
588ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Collections.Specialized.NameValueCollection System.Net.WebClient::get_QueryString()
589
590 ---> System.Exception: Basic block has to end with unconditional control flow.
591{
592 IL_0000:
593 brtrue(IL_0000, ldfld:NameValueCollection[exp:bool](WebClient::_requestParameters, ldloc:WebClient(this)))
594}
595
596 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
597 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
598 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
599 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1846
600 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
601 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
602 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
603 --- End of inner exception stack trace ---
604 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
605 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
606*/;
607 }
608 set
609 {
611 }
612 }
613
614 // Token: 0x170001F2 RID: 498
615 // (get) Token: 0x060008FA RID: 2298 RVA: 0x0001F328 File Offset: 0x0001D528
617 {
618 get
619 {
620 /*
621An exception occurred when decompiling this method (060008FA)
622
623ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Net.WebHeaderCollection System.Net.WebClient::get_ResponseHeaders()
624
625 ---> System.Exception: Basic block has to end with unconditional control flow.
626{
627 IL_0000:
628 brtrue(IL_0000, logicnot:bool(ldfld:WebResponse[exp:bool](WebClient::_webResponse, ldloc:WebClient(this))))
629}
630
631 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
632 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
633 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
634 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1846
635 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
636 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
637 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
638 --- End of inner exception stack trace ---
639 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
640 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
641*/;
642 }
643 }
644
645 // Token: 0x170001F3 RID: 499
646 // (get) Token: 0x060008FB RID: 2299 RVA: 0x0001F33C File Offset: 0x0001D53C
647 // (set) Token: 0x060008FC RID: 2300 RVA: 0x0001F360 File Offset: 0x0001D560
649 {
650 get
651 {
652 if (this._proxySet)
653 {
654 return this._proxy;
655 }
657 }
658 set
659 {
661 this._proxySet = true;
662 }
663 }
664
665 // Token: 0x170001F4 RID: 500
666 // (get) Token: 0x060008FD RID: 2301 RVA: 0x0001F37C File Offset: 0x0001D57C
667 // (set) Token: 0x060008FE RID: 2302 RVA: 0x0001F390 File Offset: 0x0001D590
668 public global::System.Net.Cache.RequestCachePolicy CachePolicy
669 {
671 get
672 {
673 return this.<CachePolicy>k__BackingField;
674 }
676 set
677 {
679 }
680 }
681
682 // Token: 0x170001F5 RID: 501
683 // (get) Token: 0x060008FF RID: 2303 RVA: 0x0001F3A4 File Offset: 0x0001D5A4
684 public bool IsBusy
685 {
686 get
687 {
688 /*
689An exception occurred when decompiling this method (060008FF)
690
691ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean System.Net.WebClient::get_IsBusy()
692
693 ---> System.Exception: Basic block has to end with unconditional control flow.
694{
695 Block_0:
696 stloc:AsyncOperation(var_0_06, ldfld:AsyncOperation(WebClient::_asyncOp, ldloc:WebClient(this)))
697}
698
699 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
700 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
701 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
702 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
703 --- End of inner exception stack trace ---
704 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
705 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
706*/;
707 }
708 }
709
710 // Token: 0x06000900 RID: 2304 RVA: 0x0001F3B8 File Offset: 0x0001D5B8
711 protected virtual WebRequest GetWebRequest(global::System.Uri address)
712 {
713 if (!true)
714 {
715 }
717 this.CopyHeadersTo(webRequest);
718 if (this._credentials != null)
719 {
720 }
721 if (this._method != null)
722 {
723 }
724 if (this._proxySet)
725 {
726 IWebProxy proxy = this._proxy;
727 }
728 if (this.<CachePolicy>k__BackingField != null)
729 {
730 }
731 return webRequest;
732 }
733
734 // Token: 0x06000901 RID: 2305 RVA: 0x0001F400 File Offset: 0x0001D600
735 protected virtual WebResponse GetWebResponse(WebRequest request)
736 {
737 /*
738An exception occurred when decompiling this method (06000901)
739
740ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Net.WebResponse System.Net.WebClient::GetWebResponse(System.Net.WebRequest)
741
742 ---> System.Exception: Basic block has to end with unconditional control flow.
743{
744 Block_0:
745 stfld:WebResponse(WebClient::_webResponse, ldloc:WebClient(this), ldloc:WebRequest[exp:WebResponse](request))
746}
747
748 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
749 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
750 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
751 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
752 --- End of inner exception stack trace ---
753 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
754 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
755*/;
756 }
757
758 // Token: 0x06000902 RID: 2306 RVA: 0x0001F414 File Offset: 0x0001D614
759 protected virtual WebResponse GetWebResponse(WebRequest request, IAsyncResult result)
760 {
761 /*
762An exception occurred when decompiling this method (06000902)
763
764ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Net.WebResponse System.Net.WebClient::GetWebResponse(System.Net.WebRequest,System.IAsyncResult)
765
766 ---> System.Exception: Basic block has to end with unconditional control flow.
767{
768 Block_0:
769 stfld:WebResponse(WebClient::_webResponse, ldloc:WebClient(this), ldloc:WebRequest[exp:WebResponse](request))
770}
771
772 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
773 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
774 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
775 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
776 --- End of inner exception stack trace ---
777 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
778 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
779*/;
780 }
781
782 // Token: 0x06000903 RID: 2307 RVA: 0x0001F428 File Offset: 0x0001D628
784 {
785 /*
786An exception occurred when decompiling this method (06000903)
787
788ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Threading.Tasks.Task`1<System.Net.WebResponse> System.Net.WebClient::GetWebResponseTaskAsync(System.Net.WebRequest)
789
790 ---> System.Exception: Basic block has to end with unconditional control flow.
791{
792 IL_0000:
793 brtrue(IL_0000, ldc.i4:bool(1))
794}
795
796 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
797 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
798 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
799 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1846
800 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
801 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
802 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
803 --- End of inner exception stack trace ---
804 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
805 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
806*/;
807 }
808
809 // Token: 0x06000904 RID: 2308 RVA: 0x0001F438 File Offset: 0x0001D638
810 public byte[] DownloadData(string address)
811 {
812 global::System.Uri uri = this.GetUri(address);
813 return this.DownloadData(uri);
814 }
815
816 // Token: 0x06000905 RID: 2309 RVA: 0x0001F454 File Offset: 0x0001D654
817 public byte[] DownloadData(global::System.Uri address)
818 {
819 if (!true)
820 {
821 }
822 WebClient.ThrowIfNull(address, "address");
823 this.StartOperation();
824 byte[] array;
825 return array;
826 }
827
828 // Token: 0x06000906 RID: 2310 RVA: 0x0001F488 File Offset: 0x0001D688
829 private byte[] DownloadDataInternal(global::System.Uri address, [Out] WebRequest request)
830 {
831 global::System.Uri uri = this.GetUri(address);
832 this._webRequest = this;
833 byte[] array;
834 return array;
835 }
836
837 // Token: 0x06000907 RID: 2311 RVA: 0x0001F4B4 File Offset: 0x0001D6B4
838 public void DownloadFile(string address, string fileName)
839 {
840 global::System.Uri uri = this.GetUri(address);
841 }
842
843 // Token: 0x06000908 RID: 2312 RVA: 0x0001F4CC File Offset: 0x0001D6CC
844 public void DownloadFile(global::System.Uri address, string fileName)
845 {
846 if (!true)
847 {
848 }
849 WebClient.ThrowIfNull(address, "address");
850 WebClient.ThrowIfNull(fileName, "fileName");
851 this.StartOperation();
852 global::System.Uri uri = this.GetUri(address);
853 this._webRequest = this;
854 long num = 0L;
855 if (!true)
856 {
857 File.Delete(fileName);
858 }
859 if (num == 0L)
860 {
861 return;
862 }
863 throw new OutOfMemoryException();
864 }
865
866 // Token: 0x06000909 RID: 2313 RVA: 0x0001F56C File Offset: 0x0001D76C
867 public Stream OpenRead(string address)
868 {
869 global::System.Uri uri = this.GetUri(address);
870 return this.OpenRead(uri);
871 }
872
873 // Token: 0x0600090A RID: 2314 RVA: 0x0001F588 File Offset: 0x0001D788
874 public Stream OpenRead(global::System.Uri address)
875 {
876 if (!true)
877 {
878 }
879 WebClient.ThrowIfNull(address, "address");
880 this.StartOperation();
881 global::System.Uri uri = this.GetUri(address);
882 this._webRequest = this;
883 this._webResponse = this;
884 throw new OutOfMemoryException();
885 }
886
887 // Token: 0x0600090B RID: 2315 RVA: 0x0001F630 File Offset: 0x0001D830
888 public Stream OpenWrite(string address)
889 {
890 global::System.Uri uri = this.GetUri(address);
891 Stream stream;
892 return stream;
893 }
894
895 // Token: 0x0600090C RID: 2316 RVA: 0x0001F648 File Offset: 0x0001D848
896 public Stream OpenWrite(global::System.Uri address)
897 {
898 Stream stream;
899 return stream;
900 }
901
902 // Token: 0x0600090D RID: 2317 RVA: 0x0001F658 File Offset: 0x0001D858
903 public Stream OpenWrite(string address, string method)
904 {
905 global::System.Uri uri = this.GetUri(address);
906 return this.OpenWrite(uri, method);
907 }
908
909 // Token: 0x0600090E RID: 2318 RVA: 0x0001F678 File Offset: 0x0001D878
910 public Stream OpenWrite(global::System.Uri address, string method)
911 {
912 if (!true)
913 {
914 }
915 WebClient.ThrowIfNull(address, "address");
916 string text;
917 if (method == null)
918 {
919 text = this.MapToDefaultMethod(address);
920 }
921 this.StartOperation();
923 global::System.Uri uri = this.GetUri(address);
924 this._webRequest = this;
925 int num = Interlocked.Decrement(-1073741824);
926 return -1073741824;
927 }
928
929 // Token: 0x0600090F RID: 2319 RVA: 0x0001F764 File Offset: 0x0001D964
930 public byte[] UploadData(string address, byte[] data)
931 {
932 global::System.Uri uri = this.GetUri(address);
933 byte[] array;
934 return array;
935 }
936
937 // Token: 0x06000910 RID: 2320 RVA: 0x0001F77C File Offset: 0x0001D97C
938 public byte[] UploadData(global::System.Uri address, byte[] data)
939 {
940 byte[] array;
941 return array;
942 }
943
944 // Token: 0x06000911 RID: 2321 RVA: 0x0001F78C File Offset: 0x0001D98C
945 public byte[] UploadData(string address, string method, byte[] data)
946 {
947 global::System.Uri uri = this.GetUri(address);
948 return this.UploadData(uri, method, data);
949 }
950
951 // Token: 0x06000912 RID: 2322 RVA: 0x0001F7AC File Offset: 0x0001D9AC
952 public byte[] UploadData(global::System.Uri address, string method, byte[] data)
953 {
954 if (!true)
955 {
956 }
957 WebClient.ThrowIfNull(address, "address");
958 WebClient.ThrowIfNull(data, "data");
959 if (method == null)
960 {
961 string text = this.MapToDefaultMethod(address);
962 }
963 this.StartOperation();
964 byte[] array;
965 return array;
966 }
967
968 // Token: 0x06000913 RID: 2323 RVA: 0x0001F7F8 File Offset: 0x0001D9F8
969 private byte[] UploadDataInternal(global::System.Uri address, string method, byte[] data, [Out] WebRequest request)
970 {
971 this._method = method;
972 global::System.Uri uri = this.GetUri(address);
973 this._webRequest = this;
974 byte[] array;
975 return array;
976 }
977
978 // Token: 0x06000914 RID: 2324 RVA: 0x0001F828 File Offset: 0x0001DA28
979 private void OpenFileInternal(bool needsHeaderAndBoundary, string fileName, FileStream fs, byte[] buffer, byte[] formHeaderBytes, byte[] boundaryBytes)
980 {
981 if (!true)
982 {
983 }
984 string fullPath = Path.GetFullPath(fileName);
985 if (this.Headers["Content-Type"] != null)
986 {
987 }
988 string method = this._method;
989 long ticks = DateTime.Now.Ticks;
991 string text2;
992 string text = "---------------------" + text2;
993 string text3 = "multipart/form-data; boundary=" + text;
994 string text4;
995 if (("--" == null || "--" != null) && (text == null || text != null) && ("\r\nContent-Disposition: form-data; name=\"file\"; filename=\"" == null || "\r\nContent-Disposition: form-data; name=\"file\"; filename=\"" != null) && (text4 == null || text4 != null) && ("\"\r\nContent-Type: " == null || "\"\r\nContent-Type: " != null) && ("application/octet-stream" == null || "application/octet-stream" != null) && ("\r\n\r\n" == null || "\r\n\r\n" != null))
996 {
1000 string text5 = "\r\n--" + text + "--\r\n";
1001 return;
1002 }
1003 throw new ArrayTypeMismatchException();
1004 }
1005
1006 // Token: 0x06000915 RID: 2325 RVA: 0x0001F938 File Offset: 0x0001DB38
1007 public byte[] UploadFile(string address, string fileName)
1008 {
1009 global::System.Uri uri = this.GetUri(address);
1010 byte[] array;
1011 return array;
1012 }
1013
1014 // Token: 0x06000916 RID: 2326 RVA: 0x0001F950 File Offset: 0x0001DB50
1015 public byte[] UploadFile(global::System.Uri address, string fileName)
1016 {
1017 byte[] array;
1018 return array;
1019 }
1020
1021 // Token: 0x06000917 RID: 2327 RVA: 0x0001F960 File Offset: 0x0001DB60
1022 public byte[] UploadFile(string address, string method, string fileName)
1023 {
1024 global::System.Uri uri = this.GetUri(address);
1025 return this.UploadFile(uri, method, fileName);
1026 }
1027
1028 // Token: 0x06000918 RID: 2328 RVA: 0x0001F980 File Offset: 0x0001DB80
1029 public byte[] UploadFile(global::System.Uri address, string method, string fileName)
1030 {
1031 int num = 1;
1032 if (num == 0)
1033 {
1034 }
1035 WebClient.ThrowIfNull(address, "address");
1036 WebClient.ThrowIfNull(fileName, "fileName");
1037 string text;
1038 if (method == null)
1039 {
1040 text = this.MapToDefaultMethod(address);
1041 }
1042 this.StartOperation();
1044 string scheme = this.GetUri(address).Scheme;
1045 if (num == 0)
1046 {
1047 }
1048 this._webRequest = this;
1049 byte[] array;
1050 return array;
1051 }
1052
1053 // Token: 0x06000919 RID: 2329 RVA: 0x0001FA4C File Offset: 0x0001DC4C
1054 private byte[] GetValuesToUpload(global::System.Collections.Specialized.NameValueCollection data)
1055 {
1056 /*
1057An exception occurred when decompiling this method (06000919)
1058
1059ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Byte[] System.Net.WebClient::GetValuesToUpload(System.Collections.Specialized.NameValueCollection)
1060
1061 ---> System.Exception: Basic block has to end with unconditional control flow.
1062{
1063 IL_0030:
1064 stloc:string(var_10_3B, call:string(WebClient::UrlEncode, ldloc:string(var_9)))
1065 stloc:Encoding(var_13_45, callgetter:Encoding(Encoding::get_ASCII))
1066}
1067
1068 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
1069 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
1070 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
1071 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
1072 --- End of inner exception stack trace ---
1073 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
1074 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
1075*/;
1076 }
1077
1078 // Token: 0x0600091A RID: 2330 RVA: 0x0001FAA0 File Offset: 0x0001DCA0
1079 public byte[] UploadValues(string address, global::System.Collections.Specialized.NameValueCollection data)
1080 {
1081 global::System.Uri uri = this.GetUri(address);
1082 byte[] array;
1083 return array;
1084 }
1085
1086 // Token: 0x0600091B RID: 2331 RVA: 0x0001FAB8 File Offset: 0x0001DCB8
1087 public byte[] UploadValues(global::System.Uri address, global::System.Collections.Specialized.NameValueCollection data)
1088 {
1089 byte[] array;
1090 return array;
1091 }
1092
1093 // Token: 0x0600091C RID: 2332 RVA: 0x0001FAC8 File Offset: 0x0001DCC8
1094 public byte[] UploadValues(string address, string method, global::System.Collections.Specialized.NameValueCollection data)
1095 {
1096 global::System.Uri uri = this.GetUri(address);
1097 return this.UploadValues(uri, method, data);
1098 }
1099
1100 // Token: 0x0600091D RID: 2333 RVA: 0x0001FAE8 File Offset: 0x0001DCE8
1101 public byte[] UploadValues(global::System.Uri address, string method, global::System.Collections.Specialized.NameValueCollection data)
1102 {
1103 if (!true)
1104 {
1105 }
1106 WebClient.ThrowIfNull(address, "address");
1107 WebClient.ThrowIfNull(data, "data");
1108 string text;
1109 if (method == null)
1110 {
1111 text = this.MapToDefaultMethod(address);
1112 }
1113 this.StartOperation();
1114 byte[] valuesToUpload = this.GetValuesToUpload(data);
1116 global::System.Uri uri = this.GetUri(address);
1117 this._webRequest = this;
1118 byte[] array;
1119 return array;
1120 }
1121
1122 // Token: 0x0600091E RID: 2334 RVA: 0x0001FBB8 File Offset: 0x0001DDB8
1123 public string UploadString(string address, string data)
1124 {
1125 global::System.Uri uri = this.GetUri(address);
1126 string text;
1127 return text;
1128 }
1129
1130 // Token: 0x0600091F RID: 2335 RVA: 0x0001FBD0 File Offset: 0x0001DDD0
1131 public string UploadString(global::System.Uri address, string data)
1132 {
1133 string text;
1134 return text;
1135 }
1136
1137 // Token: 0x06000920 RID: 2336 RVA: 0x0001FBE0 File Offset: 0x0001DDE0
1138 public string UploadString(string address, string method, string data)
1139 {
1140 global::System.Uri uri = this.GetUri(address);
1141 return this.UploadString(uri, method, data);
1142 }
1143
1144 // Token: 0x06000921 RID: 2337 RVA: 0x0001FC00 File Offset: 0x0001DE00
1145 public string UploadString(global::System.Uri address, string method, string data)
1146 {
1147 if (!true)
1148 {
1149 }
1150 WebClient.ThrowIfNull(address, "address");
1151 if (method == null)
1152 {
1153 string text = this.MapToDefaultMethod(address);
1154 }
1155 this.StartOperation();
1156 Encoding encoding = this._encoding;
1157 string text2;
1158 return text2;
1159 }
1160
1161 // Token: 0x06000922 RID: 2338 RVA: 0x0001FC4C File Offset: 0x0001DE4C
1162 public string DownloadString(string address)
1163 {
1164 global::System.Uri uri = this.GetUri(address);
1165 return this.DownloadString(uri);
1166 }
1167
1168 // Token: 0x06000923 RID: 2339 RVA: 0x0001FC68 File Offset: 0x0001DE68
1169 public string DownloadString(global::System.Uri address)
1170 {
1171 if (!true)
1172 {
1173 }
1174 WebClient.ThrowIfNull(address, "address");
1175 this.StartOperation();
1176 string text;
1177 return text;
1178 }
1179
1180 // Token: 0x06000924 RID: 2340 RVA: 0x0001FCA0 File Offset: 0x0001DEA0
1181 private static void AbortRequest(WebRequest request)
1182 {
1183 if (request != null)
1184 {
1185 }
1186 }
1187
1188 // Token: 0x06000925 RID: 2341 RVA: 0x0001FCB4 File Offset: 0x0001DEB4
1189 private void CopyHeadersTo(WebRequest request)
1190 {
1191 WebHeaderCollection headers = this._headers;
1192 if (headers != null && request != null)
1193 {
1194 string text = headers["Accept"];
1195 string text2 = this._headers["Connection"];
1196 string text3 = this._headers["Content-Type"];
1197 string text4 = this._headers["Expect"];
1198 string text5 = this._headers["Referer"];
1199 string text6 = this._headers["User-Agent"];
1200 string text7 = this._headers["Host"];
1209 bool flag = string.IsNullOrEmpty(text);
1210 bool flag2 = string.IsNullOrEmpty(text2);
1211 bool flag3 = string.IsNullOrEmpty(text3);
1212 bool flag4 = string.IsNullOrEmpty(text6);
1213 bool flag5 = string.IsNullOrEmpty(text7);
1214 }
1215 }
1216
1217 // Token: 0x06000926 RID: 2342 RVA: 0x0001FDB8 File Offset: 0x0001DFB8
1218 private global::System.Uri GetUri(string address)
1219 {
1220 if (!true)
1221 {
1222 }
1223 WebClient.ThrowIfNull(address, "address");
1224 global::System.Uri baseAddress = this._baseAddress;
1225 if (!true)
1226 {
1227 }
1228 global::System.Uri baseAddress2 = this._baseAddress;
1229 if (!true)
1230 {
1231 }
1232 if (!true)
1233 {
1234 }
1235 string fullPath = Path.GetFullPath(address);
1236 global::System.Uri uri;
1237 return uri;
1238 }
1239
1240 // Token: 0x06000927 RID: 2343 RVA: 0x0001FDF4 File Offset: 0x0001DFF4
1241 private global::System.Uri GetUri(global::System.Uri address)
1242 {
1243 /*
1244An exception occurred when decompiling this method (06000927)
1245
1246ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Uri System.Net.WebClient::GetUri(System.Uri)
1247
1248 ---> System.Exception: Basic block has to end with unconditional control flow.
1249{
1250 Block_0:
1251 stloc:NameValueCollection(var_7_47, ldfld:NameValueCollection(WebClient::_requestParameters, ldloc:WebClient(this)))
1252 stloc:int64(var_8_4A, ldc.i4:int64(0))
1253 stloc:IEqualityComparer(var_10_57, ldfld:IEqualityComparer(NameObjectCollectionBase::_keyComparer, ldfld:NameValueCollection[exp:NameObjectCollectionBase](WebClient::_requestParameters, ldloc:WebClient(this))))
1254 stloc:int32(var_12_5B, ldc.i4:int32(61))
1255 stloc:StringBuilder(var_13_66, call:StringBuilder(StringBuilder::Append, ldloc:StringBuilder(var_11), ldloc:int32[exp:char](var_12_5B)))
1256 stloc:string(var_14_75, callgetter:string(NameValueCollection::get_Item, ldfld:NameValueCollection(WebClient::_requestParameters, ldloc:WebClient(this)), ldloc:int64[exp:int32](var_8_4A)))
1257 stloc:StringBuilder(var_15_80, call:StringBuilder(StringBuilder::Append, ldloc:StringBuilder(var_13_66), ldloc:string(var_14_75)))
1258 stloc:NameValueCollection(var_16_88, ldfld:NameValueCollection(WebClient::_requestParameters, ldloc:WebClient(this)))
1259}
1260
1261 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
1262 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
1263 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
1264 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
1265 --- End of inner exception stack trace ---
1266 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
1267 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
1268*/;
1269 }
1270
1271 // Token: 0x06000928 RID: 2344 RVA: 0x0001FE8C File Offset: 0x0001E08C
1272 private byte[] DownloadBits(WebRequest request, Stream writeStream)
1273 {
1274 this._webResponse = this;
1275 int num;
1276 if (writeStream != null)
1277 {
1278 num = 32768;
1279 }
1280 byte[] array;
1281 if (this != null)
1282 {
1283 if (this != null)
1284 {
1285 }
1286 long num2 = 0L;
1287 int num3 = 13;
1288 if (num != 0)
1289 {
1290 }
1291 if (num2 != 0L)
1292 {
1293 throw new OutOfMemoryException();
1294 }
1295 if (num3 != 0)
1296 {
1297 return array;
1298 }
1299 }
1300 if (writeStream != null)
1301 {
1302 }
1303 return array;
1304 }
1305
1306 // Token: 0x06000929 RID: 2345 RVA: 0x0001FEEC File Offset: 0x0001E0EC
1307 private void DownloadBitsAsync(WebRequest request, Stream writeStream, global::System.ComponentModel.AsyncOperation asyncOp, Action<byte[], Exception, global::System.ComponentModel.AsyncOperation> completionDelegate)
1308 {
1310 }
1311
1312 // Token: 0x0600092A RID: 2346 RVA: 0x0001FF04 File Offset: 0x0001E104
1313 private byte[] UploadBits(WebRequest request, Stream readStream, byte[] buffer, int chunkSize, byte[] header, byte[] footer)
1314 {
1315 if (header != null)
1316 {
1317 }
1318 if (readStream != null)
1319 {
1320 long num = 0L;
1321 int num2 = 8;
1322 if (num != 0L)
1323 {
1324 throw new OutOfMemoryException();
1325 }
1326 if (num2 == 0)
1327 {
1328 }
1329 }
1330 long num3 = 0L;
1331 int num4 = 13;
1332 if (request != null)
1333 {
1334 }
1335 if (num3 == 0L)
1336 {
1337 if (num4 == 0)
1338 {
1339 }
1340 byte[] array;
1341 return array;
1342 }
1343 throw new OutOfMemoryException();
1344 }
1345
1346 // Token: 0x0600092B RID: 2347 RVA: 0x0001FF7C File Offset: 0x0001E17C
1347 private void UploadBitsAsync(WebRequest request, Stream readStream, byte[] buffer, int chunkSize, byte[] header, byte[] footer, global::System.ComponentModel.AsyncOperation asyncOp, Action<byte[], Exception, global::System.ComponentModel.AsyncOperation> completionDelegate)
1348 {
1350 }
1351
1352 // Token: 0x0600092C RID: 2348 RVA: 0x0001FF94 File Offset: 0x0001E194
1353 private static bool ByteArrayHasPrefix(byte[] prefix, byte[] byteArray)
1354 {
1355 while (prefix == null)
1356 {
1357 }
1358 }
1359
1360 // Token: 0x0600092D RID: 2349 RVA: 0x0001FFAC File Offset: 0x0001E1AC
1361 private string GetStringUsingEncoding(WebRequest request, byte[] data)
1362 {
1363 Encoding encoding;
1364 if (request != null)
1365 {
1367 string[] array;
1368 bool flag = array == "charset";
1369 if (encoding != null)
1370 {
1371 goto IL_0033;
1372 }
1373 }
1374 CodePageDataItem dataItem = encoding.dataItem;
1376 IL_0033:
1378 while (encoding2 != null)
1379 {
1380 }
1381 }
1382
1383 // Token: 0x0600092E RID: 2350 RVA: 0x0001FFFC File Offset: 0x0001E1FC
1384 private string MapToDefaultMethod(global::System.Uri address)
1385 {
1386 /*
1387An exception occurred when decompiling this method (0600092E)
1388
1389ICSharpCode.Decompiler.DecompilerException: Error decompiling System.String System.Net.WebClient::MapToDefaultMethod(System.Uri)
1390
1391 ---> System.Exception: Basic block has to end with unconditional control flow.
1392{
1393 IL_0011:
1394 stloc:Uri(var_3_17, ldfld:Uri(WebClient::_baseAddress, ldloc:WebClient(this)))
1395}
1396
1397 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
1398 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
1399 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
1400 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
1401 --- End of inner exception stack trace ---
1402 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
1403 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
1404*/;
1405 }
1406
1407 // Token: 0x0600092F RID: 2351 RVA: 0x00020020 File Offset: 0x0001E220
1408 private static string UrlEncode(string str)
1409 {
1410 /*
1411An exception occurred when decompiling this method (0600092F)
1412
1413ICSharpCode.Decompiler.DecompilerException: Error decompiling System.String System.Net.WebClient::UrlEncode(System.String)
1414
1415 ---> System.Exception: Basic block has to end with unconditional control flow.
1416{
1417 Block_0:
1418 stloc:Encoding(var_1_07, callgetter:Encoding(Encoding::get_UTF8))
1419 stloc:Encoding(var_3_0F, callgetter:Encoding(Encoding::get_ASCII))
1420 stloc:CodePageDataItem(var_4_16, ldfld:CodePageDataItem(Encoding::dataItem, ldloc:Encoding(var_1_07)))
1421}
1422
1423 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
1424 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
1425 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
1426 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
1427 --- End of inner exception stack trace ---
1428 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
1429 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
1430*/;
1431 }
1432
1433 // Token: 0x06000930 RID: 2352 RVA: 0x00020048 File Offset: 0x0001E248
1434 private static byte[] UrlEncodeBytesToBytesInternal(byte[] bytes, int offset, int count, bool alwaysCreateReturnValue)
1435 {
1436 int num = 1;
1437 if (num == 0)
1438 {
1439 }
1440 if (num == 0)
1441 {
1442 return;
1443 }
1444 }
1445
1446 // Token: 0x06000931 RID: 2353 RVA: 0x00002050 File Offset: 0x00000250
1447 private static char IntToHex(int n)
1448 {
1449 throw new global::Cpp2IlInjected.AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
1450 }
1451
1452 // Token: 0x06000932 RID: 2354 RVA: 0x00020064 File Offset: 0x0001E264
1453 private static bool IsSafe(char ch)
1454 {
1455 }
1456
1457 // Token: 0x06000933 RID: 2355 RVA: 0x00020074 File Offset: 0x0001E274
1458 private void InvokeOperationCompleted(global::System.ComponentModel.AsyncOperation asyncOp, SendOrPostCallback callback, global::System.ComponentModel.AsyncCompletedEventArgs eventArgs)
1459 {
1460 }
1461
1462 // Token: 0x06000934 RID: 2356 RVA: 0x0002008C File Offset: 0x0001E28C
1463 public void OpenReadAsync(global::System.Uri address)
1464 {
1465 long num = 0L;
1466 this.OpenReadAsync(address, num);
1467 }
1468
1469 // Token: 0x06000935 RID: 2357 RVA: 0x000200A4 File Offset: 0x0001E2A4
1470 public void OpenReadAsync(global::System.Uri address, object userToken)
1471 {
1472 if (!true)
1473 {
1474 }
1475 WebClient.ThrowIfNull(address, "address");
1476 global::System.ComponentModel.AsyncOperation asyncOperation = this.StartAsyncOperation(userToken);
1477 global::System.Uri uri = this.GetUri(address);
1478 this._webRequest = this;
1479 }
1480
1481 // Token: 0x06000936 RID: 2358 RVA: 0x000200EC File Offset: 0x0001E2EC
1482 public void OpenWriteAsync(global::System.Uri address)
1483 {
1484 }
1485
1486 // Token: 0x06000937 RID: 2359 RVA: 0x000200FC File Offset: 0x0001E2FC
1487 public void OpenWriteAsync(global::System.Uri address, string method)
1488 {
1489 long num = 0L;
1490 this.OpenWriteAsync(address, method, num);
1491 }
1492
1493 // Token: 0x06000938 RID: 2360 RVA: 0x00020114 File Offset: 0x0001E314
1494 public void OpenWriteAsync(global::System.Uri address, string method, object userToken)
1495 {
1496 if (!true)
1497 {
1498 }
1499 WebClient.ThrowIfNull(address, "address");
1500 string text;
1501 if (method == null)
1502 {
1503 text = this.MapToDefaultMethod(address);
1504 }
1505 global::System.ComponentModel.AsyncOperation asyncOperation = this.StartAsyncOperation(userToken);
1507 global::System.Uri uri = this.GetUri(address);
1508 this._webRequest = this;
1509 }
1510
1511 // Token: 0x06000939 RID: 2361 RVA: 0x00020170 File Offset: 0x0001E370
1513 {
1514 if (state != null)
1515 {
1516 }
1517 if (returnBytes != null)
1518 {
1520 string stringUsingEncoding = this.GetStringUsingEncoding(webRequest, returnBytes);
1521 }
1522 bool canceled = this._canceled;
1524 }
1525
1526 // Token: 0x0600093A RID: 2362 RVA: 0x000201AC File Offset: 0x0001E3AC
1527 public void DownloadStringAsync(global::System.Uri address)
1528 {
1529 long num = 0L;
1530 this.DownloadStringAsync(address, num);
1531 }
1532
1533 // Token: 0x0600093B RID: 2363 RVA: 0x000201C4 File Offset: 0x0001E3C4
1534 public void DownloadStringAsync(global::System.Uri address, object userToken)
1535 {
1536 if (!true)
1537 {
1538 }
1539 WebClient.ThrowIfNull(address, "address");
1540 global::System.ComponentModel.AsyncOperation asyncOperation = this.StartAsyncOperation(userToken);
1541 global::System.Uri uri = this.GetUri(address);
1542 this._webRequest = this;
1543 }
1544
1545 // Token: 0x0600093C RID: 2364 RVA: 0x00020200 File Offset: 0x0001E400
1547 {
1548 if (state != null)
1549 {
1550 }
1551 bool canceled = this._canceled;
1553 }
1554
1555 // Token: 0x0600093D RID: 2365 RVA: 0x00020224 File Offset: 0x0001E424
1556 public void DownloadDataAsync(global::System.Uri address)
1557 {
1558 long num = 0L;
1559 this.DownloadDataAsync(address, num);
1560 }
1561
1562 // Token: 0x0600093E RID: 2366 RVA: 0x0002023C File Offset: 0x0001E43C
1563 public void DownloadDataAsync(global::System.Uri address, object userToken)
1564 {
1565 if (!true)
1566 {
1567 }
1568 WebClient.ThrowIfNull(address, "address");
1569 global::System.ComponentModel.AsyncOperation asyncOperation = this.StartAsyncOperation(userToken);
1570 global::System.Uri uri = this.GetUri(address);
1571 this._webRequest = this;
1572 }
1573
1574 // Token: 0x0600093F RID: 2367 RVA: 0x00020278 File Offset: 0x0001E478
1576 {
1577 if (state != null)
1578 {
1579 }
1580 bool canceled = this._canceled;
1582 }
1583
1584 // Token: 0x06000940 RID: 2368 RVA: 0x0002029C File Offset: 0x0001E49C
1585 public void DownloadFileAsync(global::System.Uri address, string fileName)
1586 {
1587 long num = 0L;
1588 this.DownloadFileAsync(address, fileName, num);
1589 }
1590
1591 // Token: 0x06000941 RID: 2369 RVA: 0x000202B4 File Offset: 0x0001E4B4
1592 public void DownloadFileAsync(global::System.Uri address, string fileName, object userToken)
1593 {
1594 if (!true)
1595 {
1596 }
1597 WebClient.ThrowIfNull(address, "address");
1598 WebClient.ThrowIfNull(fileName, "fileName");
1599 global::System.ComponentModel.AsyncOperation asyncOperation = this.StartAsyncOperation(userToken);
1600 global::System.Uri uri = this.GetUri(address);
1601 this._webRequest = this;
1602 }
1603
1604 // Token: 0x06000942 RID: 2370 RVA: 0x000202FC File Offset: 0x0001E4FC
1605 public void UploadStringAsync(global::System.Uri address, string data)
1606 {
1607 }
1608
1609 // Token: 0x06000943 RID: 2371 RVA: 0x0002030C File Offset: 0x0001E50C
1610 public void UploadStringAsync(global::System.Uri address, string method, string data)
1611 {
1612 long num = 0L;
1613 this.UploadStringAsync(address, method, data, num);
1614 }
1615
1616 // Token: 0x06000944 RID: 2372 RVA: 0x00020328 File Offset: 0x0001E528
1617 public void UploadStringAsync(global::System.Uri address, string method, string data, object userToken)
1618 {
1619 if (!true)
1620 {
1621 }
1622 WebClient.ThrowIfNull(address, "address");
1623 WebClient.ThrowIfNull(data, "data");
1624 string text;
1625 if (method == null)
1626 {
1627 text = this.MapToDefaultMethod(address);
1628 }
1629 global::System.ComponentModel.AsyncOperation asyncOperation = this.StartAsyncOperation(userToken);
1630 Encoding encoding = this._encoding;
1632 this._contentLength = encoding;
1633 global::System.Uri uri = this.GetUri(address);
1634 this._webRequest = this;
1635 }
1636
1637 // Token: 0x06000945 RID: 2373 RVA: 0x000203A4 File Offset: 0x0001E5A4
1638 public void UploadDataAsync(global::System.Uri address, byte[] data)
1639 {
1640 }
1641
1642 // Token: 0x06000946 RID: 2374 RVA: 0x000203B4 File Offset: 0x0001E5B4
1643 public void UploadDataAsync(global::System.Uri address, string method, byte[] data)
1644 {
1645 long num = 0L;
1646 this.UploadDataAsync(address, method, data, num);
1647 }
1648
1649 // Token: 0x06000947 RID: 2375 RVA: 0x000203D0 File Offset: 0x0001E5D0
1650 public void UploadDataAsync(global::System.Uri address, string method, byte[] data, object userToken)
1651 {
1652 int num = 1;
1653 if (num == 0)
1654 {
1655 }
1656 WebClient.ThrowIfNull(address, "address");
1657 WebClient.ThrowIfNull(data, "data");
1658 string text;
1659 if (method == null)
1660 {
1661 text = this.MapToDefaultMethod(address);
1662 }
1663 global::System.ComponentModel.AsyncOperation asyncOperation = this.StartAsyncOperation(userToken);
1666 global::System.Uri uri = this.GetUri(address);
1668 this._webRequest = this;
1669 if (uploadProgressChanged != null)
1670 {
1671 return;
1672 }
1673 }
1674
1675 // Token: 0x06000948 RID: 2376 RVA: 0x00020454 File Offset: 0x0001E654
1676 public void UploadFileAsync(global::System.Uri address, string fileName)
1677 {
1678 }
1679
1680 // Token: 0x06000949 RID: 2377 RVA: 0x00020464 File Offset: 0x0001E664
1681 public void UploadFileAsync(global::System.Uri address, string method, string fileName)
1682 {
1683 long num = 0L;
1684 this.UploadFileAsync(address, method, fileName, num);
1685 }
1686
1687 // Token: 0x0600094A RID: 2378 RVA: 0x00020480 File Offset: 0x0001E680
1688 public void UploadFileAsync(global::System.Uri address, string method, string fileName, object userToken)
1689 {
1690 int num = 1;
1691 if (num == 0)
1692 {
1693 }
1694 WebClient.ThrowIfNull(address, "address");
1695 WebClient.ThrowIfNull(fileName, "fileName");
1696 string text;
1697 if (method == null)
1698 {
1699 text = this.MapToDefaultMethod(address);
1700 }
1701 global::System.ComponentModel.AsyncOperation asyncOperation = this.StartAsyncOperation(userToken);
1703 string scheme = this.GetUri(address).Scheme;
1704 if (num == 0)
1705 {
1706 }
1707 this._webRequest = this;
1708 }
1709
1710 // Token: 0x0600094B RID: 2379 RVA: 0x000204F4 File Offset: 0x0001E6F4
1711 public void UploadValuesAsync(global::System.Uri address, global::System.Collections.Specialized.NameValueCollection data)
1712 {
1713 }
1714
1715 // Token: 0x0600094C RID: 2380 RVA: 0x00020504 File Offset: 0x0001E704
1716 public void UploadValuesAsync(global::System.Uri address, string method, global::System.Collections.Specialized.NameValueCollection data)
1717 {
1718 long num = 0L;
1719 this.UploadValuesAsync(address, method, data, num);
1720 }
1721
1722 // Token: 0x0600094D RID: 2381 RVA: 0x00020520 File Offset: 0x0001E720
1723 public void UploadValuesAsync(global::System.Uri address, string method, global::System.Collections.Specialized.NameValueCollection data, object userToken)
1724 {
1725 if (!true)
1726 {
1727 }
1728 WebClient.ThrowIfNull(address, "address");
1729 WebClient.ThrowIfNull(data, "data");
1730 string text;
1731 if (method == null)
1732 {
1733 text = this.MapToDefaultMethod(address);
1734 }
1735 global::System.ComponentModel.AsyncOperation asyncOperation = this.StartAsyncOperation(userToken);
1736 byte[] valuesToUpload = this.GetValuesToUpload(data);
1738 global::System.Uri uri = this.GetUri(address);
1740 this._webRequest = this;
1741 if (uploadProgressChanged != null)
1742 {
1743 return;
1744 }
1745 }
1746
1747 // Token: 0x0600094E RID: 2382 RVA: 0x000205A4 File Offset: 0x0001E7A4
1749 {
1750 }
1751
1752 // Token: 0x0600094F RID: 2383 RVA: 0x000205B4 File Offset: 0x0001E7B4
1753 public void CancelAsync()
1754 {
1755 this._canceled = true;
1757 if (!true)
1758 {
1759 }
1761 }
1762
1763 // Token: 0x06000950 RID: 2384 RVA: 0x000205D8 File Offset: 0x0001E7D8
1765 {
1766 global::System.Uri uri = this.GetUri(address);
1767 return this.DownloadStringTaskAsync(uri);
1768 }
1769
1770 // Token: 0x06000951 RID: 2385 RVA: 0x000205F4 File Offset: 0x0001E7F4
1771 public Task<string> DownloadStringTaskAsync(global::System.Uri address)
1772 {
1773 throw new OutOfMemoryException();
1774 }
1775
1776 // Token: 0x06000952 RID: 2386 RVA: 0x00020608 File Offset: 0x0001E808
1777 public Task<Stream> OpenReadTaskAsync(string address)
1778 {
1779 global::System.Uri uri = this.GetUri(address);
1780 return this.OpenReadTaskAsync(uri);
1781 }
1782
1783 // Token: 0x06000953 RID: 2387 RVA: 0x00020624 File Offset: 0x0001E824
1784 public Task<Stream> OpenReadTaskAsync(global::System.Uri address)
1785 {
1786 throw new OutOfMemoryException();
1787 }
1788
1789 // Token: 0x06000954 RID: 2388 RVA: 0x00020638 File Offset: 0x0001E838
1790 public Task<Stream> OpenWriteTaskAsync(string address)
1791 {
1792 global::System.Uri uri = this.GetUri(address);
1794 return task;
1795 }
1796
1797 // Token: 0x06000955 RID: 2389 RVA: 0x00020650 File Offset: 0x0001E850
1798 public Task<Stream> OpenWriteTaskAsync(global::System.Uri address)
1799 {
1801 return task;
1802 }
1803
1804 // Token: 0x06000956 RID: 2390 RVA: 0x00020660 File Offset: 0x0001E860
1805 public Task<Stream> OpenWriteTaskAsync(string address, string method)
1806 {
1807 global::System.Uri uri = this.GetUri(address);
1808 return this.OpenWriteTaskAsync(uri, method);
1809 }
1810
1811 // Token: 0x06000957 RID: 2391 RVA: 0x00020680 File Offset: 0x0001E880
1812 public Task<Stream> OpenWriteTaskAsync(global::System.Uri address, string method)
1813 {
1814 throw new OutOfMemoryException();
1815 }
1816
1817 // Token: 0x06000958 RID: 2392 RVA: 0x00020694 File Offset: 0x0001E894
1818 public Task<string> UploadStringTaskAsync(string address, string data)
1819 {
1820 global::System.Uri uri = this.GetUri(address);
1822 return task;
1823 }
1824
1825 // Token: 0x06000959 RID: 2393 RVA: 0x000206AC File Offset: 0x0001E8AC
1826 public Task<string> UploadStringTaskAsync(global::System.Uri address, string data)
1827 {
1829 return task;
1830 }
1831
1832 // Token: 0x0600095A RID: 2394 RVA: 0x000206BC File Offset: 0x0001E8BC
1833 public Task<string> UploadStringTaskAsync(string address, string method, string data)
1834 {
1835 global::System.Uri uri = this.GetUri(address);
1836 return this.UploadStringTaskAsync(uri, method, data);
1837 }
1838
1839 // Token: 0x0600095B RID: 2395 RVA: 0x000206DC File Offset: 0x0001E8DC
1840 public Task<string> UploadStringTaskAsync(global::System.Uri address, string method, string data)
1841 {
1842 throw new OutOfMemoryException();
1843 }
1844
1845 // Token: 0x0600095C RID: 2396 RVA: 0x000206F0 File Offset: 0x0001E8F0
1847 {
1848 global::System.Uri uri = this.GetUri(address);
1849 return this.DownloadDataTaskAsync(uri);
1850 }
1851
1852 // Token: 0x0600095D RID: 2397 RVA: 0x0002070C File Offset: 0x0001E90C
1853 public Task<byte[]> DownloadDataTaskAsync(global::System.Uri address)
1854 {
1855 throw new OutOfMemoryException();
1856 }
1857
1858 // Token: 0x0600095E RID: 2398 RVA: 0x00020720 File Offset: 0x0001E920
1859 public Task DownloadFileTaskAsync(string address, string fileName)
1860 {
1861 global::System.Uri uri = this.GetUri(address);
1862 return this.DownloadFileTaskAsync(uri, fileName);
1863 }
1864
1865 // Token: 0x0600095F RID: 2399 RVA: 0x00020740 File Offset: 0x0001E940
1866 public Task DownloadFileTaskAsync(global::System.Uri address, string fileName)
1867 {
1868 long num = 0L;
1869 this.DownloadFileAsync(address, fileName, num);
1870 throw new OutOfMemoryException();
1871 }
1872
1873 // Token: 0x06000960 RID: 2400 RVA: 0x00020760 File Offset: 0x0001E960
1874 public Task<byte[]> UploadDataTaskAsync(string address, byte[] data)
1875 {
1876 global::System.Uri uri = this.GetUri(address);
1878 return task;
1879 }
1880
1881 // Token: 0x06000961 RID: 2401 RVA: 0x00020778 File Offset: 0x0001E978
1882 public Task<byte[]> UploadDataTaskAsync(global::System.Uri address, byte[] data)
1883 {
1885 return task;
1886 }
1887
1888 // Token: 0x06000962 RID: 2402 RVA: 0x00020788 File Offset: 0x0001E988
1889 public Task<byte[]> UploadDataTaskAsync(string address, string method, byte[] data)
1890 {
1891 global::System.Uri uri = this.GetUri(address);
1892 return this.UploadDataTaskAsync(uri, method, data);
1893 }
1894
1895 // Token: 0x06000963 RID: 2403 RVA: 0x000207A8 File Offset: 0x0001E9A8
1896 public Task<byte[]> UploadDataTaskAsync(global::System.Uri address, string method, byte[] data)
1897 {
1898 throw new OutOfMemoryException();
1899 }
1900
1901 // Token: 0x06000964 RID: 2404 RVA: 0x000207BC File Offset: 0x0001E9BC
1902 public Task<byte[]> UploadFileTaskAsync(string address, string fileName)
1903 {
1904 global::System.Uri uri = this.GetUri(address);
1906 return task;
1907 }
1908
1909 // Token: 0x06000965 RID: 2405 RVA: 0x000207D4 File Offset: 0x0001E9D4
1910 public Task<byte[]> UploadFileTaskAsync(global::System.Uri address, string fileName)
1911 {
1913 return task;
1914 }
1915
1916 // Token: 0x06000966 RID: 2406 RVA: 0x000207E4 File Offset: 0x0001E9E4
1917 public Task<byte[]> UploadFileTaskAsync(string address, string method, string fileName)
1918 {
1919 global::System.Uri uri = this.GetUri(address);
1920 return this.UploadFileTaskAsync(uri, method, fileName);
1921 }
1922
1923 // Token: 0x06000967 RID: 2407 RVA: 0x00020804 File Offset: 0x0001EA04
1924 public Task<byte[]> UploadFileTaskAsync(global::System.Uri address, string method, string fileName)
1925 {
1926 throw new OutOfMemoryException();
1927 }
1928
1929 // Token: 0x06000968 RID: 2408 RVA: 0x00020818 File Offset: 0x0001EA18
1930 public Task<byte[]> UploadValuesTaskAsync(string address, global::System.Collections.Specialized.NameValueCollection data)
1931 {
1932 global::System.Uri uri = this.GetUri(address);
1934 return task;
1935 }
1936
1937 // Token: 0x06000969 RID: 2409 RVA: 0x00020830 File Offset: 0x0001EA30
1938 public Task<byte[]> UploadValuesTaskAsync(string address, string method, global::System.Collections.Specialized.NameValueCollection data)
1939 {
1940 global::System.Uri uri = this.GetUri(address);
1941 return this.UploadValuesTaskAsync(uri, method, data);
1942 }
1943
1944 // Token: 0x0600096A RID: 2410 RVA: 0x00020850 File Offset: 0x0001EA50
1945 public Task<byte[]> UploadValuesTaskAsync(global::System.Uri address, global::System.Collections.Specialized.NameValueCollection data)
1946 {
1948 return task;
1949 }
1950
1951 // Token: 0x0600096B RID: 2411 RVA: 0x00020860 File Offset: 0x0001EA60
1952 public Task<byte[]> UploadValuesTaskAsync(global::System.Uri address, string method, global::System.Collections.Specialized.NameValueCollection data)
1953 {
1954 throw new OutOfMemoryException();
1955 }
1956
1957 // Token: 0x0600096C RID: 2412 RVA: 0x00020874 File Offset: 0x0001EA74
1959 {
1960 long num = 0L;
1961 if (this != null)
1962 {
1963 if (num == 0L)
1964 {
1965 return;
1966 }
1967 }
1968 else
1969 {
1970 while (num == 0L)
1971 {
1972 }
1973 }
1974 throw new OutOfMemoryException();
1975 }
1976
1977 // Token: 0x0600096D RID: 2413 RVA: 0x000208A8 File Offset: 0x0001EAA8
1978 private void PostProgressChanged(global::System.ComponentModel.AsyncOperation asyncOp, WebClient.ProgressData progress)
1979 {
1980 if (asyncOp != null)
1981 {
1982 long bytesSent = progress.BytesSent;
1983 long bytesReceived = progress.BytesReceived;
1984 if (progress.HasUploadPhase)
1985 {
1986 if (this.UploadProgressChanged != null)
1987 {
1988 long totalBytesToReceive = progress.TotalBytesToReceive;
1989 if (progress.BytesReceived != 0L)
1990 {
1991 long totalBytesToSend = progress.TotalBytesToSend;
1992 if (totalBytesToReceive != 0L)
1993 {
1994 long bytesReceived2 = progress.BytesReceived;
1995 return;
1996 }
1997 return;
1998 }
1999 else
2000 {
2001 if (progress.TotalBytesToSend != 0L)
2002 {
2003 return;
2004 }
2006 object userSuppliedState = asyncOp._userSuppliedState;
2007 long bytesReceived3 = progress.BytesReceived;
2008 return;
2009 }
2010 }
2011 }
2012 else if (this.DownloadProgressChanged != null)
2013 {
2014 if (progress.TotalBytesToReceive != 0L)
2015 {
2016 long bytesReceived4 = progress.BytesReceived;
2017 return;
2018 }
2019 object userSuppliedState2 = asyncOp._userSuppliedState;
2020 return;
2021 }
2022 }
2023 }
2024
2025 // Token: 0x0600096E RID: 2414 RVA: 0x00020948 File Offset: 0x0001EB48
2026 private static void ThrowIfNull(object argument, string parameterName)
2027 {
2028 while (argument == null)
2029 {
2030 }
2031 }
2032
2033 // Token: 0x170001F6 RID: 502
2034 // (get) Token: 0x0600096F RID: 2415 RVA: 0x00020958 File Offset: 0x0001EB58
2035 // (set) Token: 0x06000970 RID: 2416 RVA: 0x0002096C File Offset: 0x0001EB6C
2036 [global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)]
2037 [Obsolete("This API supports the .NET Framework infrastructure and is not intended to be used directly from your code.", true)]
2039 {
2041 get
2042 {
2044 }
2046 set
2047 {
2048 }
2049 }
2050
2051 // Token: 0x170001F7 RID: 503
2052 // (get) Token: 0x06000971 RID: 2417 RVA: 0x0002097C File Offset: 0x0001EB7C
2053 // (set) Token: 0x06000972 RID: 2418 RVA: 0x00020990 File Offset: 0x0001EB90
2054 [Obsolete("This API supports the .NET Framework infrastructure and is not intended to be used directly from your code.", true)]
2055 [global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)]
2057 {
2059 get
2060 {
2062 }
2064 set
2065 {
2066 }
2067 }
2068
2069 // Token: 0x1400000C RID: 12
2070 // (add) Token: 0x06000973 RID: 2419 RVA: 0x000209A0 File Offset: 0x0001EBA0
2071 // (remove) Token: 0x06000974 RID: 2420 RVA: 0x000209B0 File Offset: 0x0001EBB0
2073 {
2074 add
2075 {
2076 }
2077 remove
2078 {
2079 }
2080 }
2081
2082 // Token: 0x06000975 RID: 2421 RVA: 0x000209C0 File Offset: 0x0001EBC0
2083 [global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)]
2084 [Obsolete("This API supports the .NET Framework infrastructure and is not intended to be used directly from your code.", true)]
2086 {
2087 }
2088
2089 // Token: 0x06000976 RID: 2422 RVA: 0x000209D0 File Offset: 0x0001EBD0
2090 // Note: this type is marked as 'beforefieldinit'.
2091 static WebClient()
2092 {
2094 if (utf == null || utf != null)
2095 {
2097 if (utf2 == null || utf2 != null)
2098 {
2100 if (unicode == null || unicode != null)
2101 {
2102 Encoding bigEndianUnicode = Encoding.BigEndianUnicode;
2103 if (bigEndianUnicode == null || bigEndianUnicode != null)
2104 {
2105 return;
2106 }
2107 }
2108 }
2109 }
2110 throw new ArrayTypeMismatchException();
2111 }
2112
2113 // Token: 0x06000977 RID: 2423 RVA: 0x00020A24 File Offset: 0x0001EC24
2116 {
2117 if (arg != null)
2118 {
2119 }
2120 }
2121
2122 // Token: 0x06000978 RID: 2424 RVA: 0x00020A3C File Offset: 0x0001EC3C
2125 {
2126 if (arg != null)
2127 {
2128 }
2129 }
2130
2131 // Token: 0x06000979 RID: 2425 RVA: 0x00020A54 File Offset: 0x0001EC54
2134 {
2135 if (arg != null)
2136 {
2137 }
2138 }
2139
2140 // Token: 0x0600097A RID: 2426 RVA: 0x00020A6C File Offset: 0x0001EC6C
2143 {
2144 if (arg != null)
2145 {
2146 }
2147 }
2148
2149 // Token: 0x0600097B RID: 2427 RVA: 0x00020A84 File Offset: 0x0001EC84
2152 {
2153 if (arg != null)
2154 {
2155 }
2156 }
2157
2158 // Token: 0x0600097C RID: 2428 RVA: 0x00020A9C File Offset: 0x0001EC9C
2161 {
2162 if (arg != null)
2163 {
2164 }
2165 }
2166
2167 // Token: 0x0600097D RID: 2429 RVA: 0x00020AB4 File Offset: 0x0001ECB4
2170 {
2171 if (arg != null)
2172 {
2173 }
2174 }
2175
2176 // Token: 0x0600097E RID: 2430 RVA: 0x00020ACC File Offset: 0x0001ECCC
2179 {
2180 if (arg != null)
2181 {
2182 }
2183 }
2184
2185 // Token: 0x0600097F RID: 2431 RVA: 0x00020AE4 File Offset: 0x0001ECE4
2188 {
2189 if (arg != null)
2190 {
2191 }
2192 }
2193
2194 // Token: 0x06000980 RID: 2432 RVA: 0x00020AFC File Offset: 0x0001ECFC
2197 {
2198 if (arg != null)
2199 {
2200 }
2201 }
2202
2203 // Token: 0x06000981 RID: 2433 RVA: 0x00020B14 File Offset: 0x0001ED14
2206 {
2207 if (arg != null)
2208 {
2209 }
2210 }
2211
2212 // Token: 0x06000982 RID: 2434 RVA: 0x00020B2C File Offset: 0x0001ED2C
2214 private void <UploadStringAsync>b__179_0(byte[] bytesResult, Exception error, global::System.ComponentModel.AsyncOperation uploadAsyncOp)
2215 {
2216 if (bytesResult != null && error == null)
2217 {
2219 string stringUsingEncoding = this.GetStringUsingEncoding(webRequest, bytesResult);
2220 }
2222 bool canceled = this._canceled;
2223 object userSuppliedState = uploadAsyncOp._userSuppliedState;
2224 }
2225
2226 // Token: 0x04000702 RID: 1794
2227 private const int DefaultCopyBufferLength = 8192;
2228
2229 // Token: 0x04000703 RID: 1795
2230 private const int DefaultDownloadBufferLength = 65536;
2231
2232 // Token: 0x04000704 RID: 1796
2233 private const string DefaultUploadFileContentType = "application/octet-stream";
2234
2235 // Token: 0x04000705 RID: 1797
2236 private const string UploadFileContentType = "multipart/form-data";
2237
2238 // Token: 0x04000706 RID: 1798
2239 private const string UploadValuesContentType = "application/x-www-form-urlencoded";
2240
2241 // Token: 0x04000707 RID: 1799
2242 private global::System.Uri _baseAddress;
2243
2244 // Token: 0x04000708 RID: 1800
2246
2247 // Token: 0x04000709 RID: 1801
2249
2250 // Token: 0x0400070A RID: 1802
2251 private global::System.Collections.Specialized.NameValueCollection _requestParameters;
2252
2253 // Token: 0x0400070B RID: 1803
2255
2256 // Token: 0x0400070C RID: 1804
2258
2259 // Token: 0x0400070D RID: 1805
2261
2262 // Token: 0x0400070E RID: 1806
2263 private string _method;
2264
2265 // Token: 0x0400070F RID: 1807
2266 private long _contentLength;
2267
2268 // Token: 0x04000710 RID: 1808
2270
2271 // Token: 0x04000711 RID: 1809
2272 private bool _canceled;
2273
2274 // Token: 0x04000712 RID: 1810
2276
2277 // Token: 0x04000713 RID: 1811
2279
2280 // Token: 0x04000714 RID: 1812
2281 private bool _proxySet;
2282
2283 // Token: 0x04000715 RID: 1813
2284 private int _callNesting;
2285
2286 // Token: 0x04000716 RID: 1814
2287 private global::System.ComponentModel.AsyncOperation _asyncOp;
2288
2289 // Token: 0x04000717 RID: 1815
2291
2292 // Token: 0x04000718 RID: 1816
2294
2295 // Token: 0x04000719 RID: 1817
2297
2298 // Token: 0x0400071A RID: 1818
2300
2301 // Token: 0x0400071B RID: 1819
2303
2304 // Token: 0x0400071C RID: 1820
2306
2307 // Token: 0x0400071D RID: 1821
2309
2310 // Token: 0x0400071E RID: 1822
2312
2313 // Token: 0x0400071F RID: 1823
2315
2316 // Token: 0x04000720 RID: 1824
2318
2319 // Token: 0x04000721 RID: 1825
2321
2322 // Token: 0x04000722 RID: 1826
2325
2326 // Token: 0x04000723 RID: 1827
2329
2330 // Token: 0x04000724 RID: 1828
2332 private global::System.ComponentModel.AsyncCompletedEventHandler DownloadFileCompleted;
2333
2334 // Token: 0x04000725 RID: 1829
2337
2338 // Token: 0x04000726 RID: 1830
2341
2342 // Token: 0x04000727 RID: 1831
2345
2346 // Token: 0x04000728 RID: 1832
2349
2350 // Token: 0x04000729 RID: 1833
2353
2354 // Token: 0x0400072A RID: 1834
2357
2358 // Token: 0x0400072B RID: 1835
2361
2362 // Token: 0x0400072C RID: 1836
2365
2366 // Token: 0x0400072D RID: 1837
2368 private global::System.Net.Cache.RequestCachePolicy <CachePolicy>k__BackingField;
2369
2370 // Token: 0x0400072E RID: 1838
2372
2373 // Token: 0x0400072F RID: 1839
2375
2376 // Token: 0x04000730 RID: 1840
2378 private bool <AllowReadStreamBuffering>k__BackingField;
2379
2380 // Token: 0x04000731 RID: 1841
2382 private bool <AllowWriteStreamBuffering>k__BackingField;
2383
2384 // Token: 0x0200015B RID: 347
2385 private sealed class ProgressData
2386 {
2387 // Token: 0x06000983 RID: 2435 RVA: 0x00020B6C File Offset: 0x0001ED6C
2388 internal void Reset()
2389 {
2390 }
2391
2392 // Token: 0x06000984 RID: 2436 RVA: 0x00020B7C File Offset: 0x0001ED7C
2394 {
2395 }
2396
2397 // Token: 0x04000732 RID: 1842
2398 internal long BytesSent;
2399
2400 // Token: 0x04000733 RID: 1843
2401 internal long TotalBytesToSend;
2402
2403 // Token: 0x04000734 RID: 1844
2404 internal long BytesReceived;
2405
2406 // Token: 0x04000735 RID: 1845
2407 internal long TotalBytesToReceive;
2408
2409 // Token: 0x04000736 RID: 1846
2410 internal bool HasUploadPhase;
2411 }
2412
2413 // Token: 0x0200015C RID: 348
2414 private sealed class WebClientWriteStream : global::System.Net.Http.DelegatingStream
2415 {
2416 // Token: 0x06000985 RID: 2437 RVA: 0x00020B90 File Offset: 0x0001ED90
2418 : base(stream)
2419 {
2420 this._request = request;
2422 }
2423
2424 // Token: 0x06000986 RID: 2438 RVA: 0x00020BB4 File Offset: 0x0001EDB4
2425 protected override void Dispose(bool disposing)
2426 {
2427 WebRequest request = this._request;
2429 long num = 0L;
2430 base.Dispose(num != 0L);
2431 }
2432
2433 // Token: 0x04000737 RID: 1847
2435
2436 // Token: 0x04000738 RID: 1848
2438 }
2439
2440 // Token: 0x0200015D RID: 349
2442 [StructLayout(3)]
2444 {
2445 // Token: 0x06000987 RID: 2439 RVA: 0x00002050 File Offset: 0x00000250
2446 private void MoveNext()
2447 {
2448 throw new global::Cpp2IlInjected.AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
2449 }
2450
2451 // Token: 0x06000988 RID: 2440 RVA: 0x00020BFC File Offset: 0x0001EDFC
2456
2457 // Token: 0x04000739 RID: 1849
2459
2460 // Token: 0x0400073A RID: 1850
2462
2463 // Token: 0x0400073B RID: 1851
2465
2466 // Token: 0x0400073C RID: 1852
2468
2469 // Token: 0x0400073D RID: 1853
2471
2472 // Token: 0x0400073E RID: 1854
2474 }
2475
2476 // Token: 0x0200015E RID: 350
2478 [StructLayout(3)]
2480 {
2481 // Token: 0x06000989 RID: 2441 RVA: 0x00020C0C File Offset: 0x0001EE0C
2482 private void MoveNext()
2483 {
2484 WebClient webClient = this.<>4__this;
2485 WebRequest webRequest = this.request;
2487 }
2488
2489 // Token: 0x0600098A RID: 2442 RVA: 0x00020E88 File Offset: 0x0001F088
2494
2495 // Token: 0x0400073F RID: 1855
2497
2498 // Token: 0x04000740 RID: 1856
2500
2501 // Token: 0x04000741 RID: 1857
2503
2504 // Token: 0x04000742 RID: 1858
2506
2507 // Token: 0x04000743 RID: 1859
2509
2510 // Token: 0x04000744 RID: 1860
2511 public global::System.ComponentModel.AsyncOperation asyncOp;
2512
2513 // Token: 0x04000745 RID: 1861
2514 public Action<byte[], Exception, global::System.ComponentModel.AsyncOperation> completionDelegate;
2515
2516 // Token: 0x04000746 RID: 1862
2517 private Exception <exception>5__2;
2518
2519 // Token: 0x04000747 RID: 1863
2520 private byte[] <copyBuffer>5__3;
2521
2522 // Token: 0x04000748 RID: 1864
2524
2525 // Token: 0x04000749 RID: 1865
2527
2528 // Token: 0x0400074A RID: 1866
2529 private Stream <readStream>5__5;
2530
2531 // Token: 0x0400074B RID: 1867
2533
2534 // Token: 0x0400074C RID: 1868
2536 }
2537
2538 // Token: 0x0200015F RID: 351
2540 [StructLayout(3)]
2542 {
2543 // Token: 0x0600098B RID: 2443 RVA: 0x00020E98 File Offset: 0x0001F098
2544 private void MoveNext()
2545 {
2546 WebClient webClient = this.<>4__this;
2547 WebClient.ProgressData progress = webClient._progress;
2548 int num = 1;
2549 progress.HasUploadPhase = num != 0;
2550 WebRequest webRequest = this.request;
2551 WebRequest webRequest2 = this.request;
2552 }
2553
2554 // Token: 0x0600098C RID: 2444 RVA: 0x000212B4 File Offset: 0x0001F4B4
2559
2560 // Token: 0x0400074D RID: 1869
2562
2563 // Token: 0x0400074E RID: 1870
2565
2566 // Token: 0x0400074F RID: 1871
2568
2569 // Token: 0x04000750 RID: 1872
2571
2572 // Token: 0x04000751 RID: 1873
2573 public byte[] header;
2574
2575 // Token: 0x04000752 RID: 1874
2576 public byte[] footer;
2577
2578 // Token: 0x04000753 RID: 1875
2579 public global::System.ComponentModel.AsyncOperation asyncOp;
2580
2581 // Token: 0x04000754 RID: 1876
2583
2584 // Token: 0x04000755 RID: 1877
2585 public byte[] buffer;
2586
2587 // Token: 0x04000756 RID: 1878
2588 public int chunkSize;
2589
2590 // Token: 0x04000757 RID: 1879
2591 public Action<byte[], Exception, global::System.ComponentModel.AsyncOperation> completionDelegate;
2592
2593 // Token: 0x04000758 RID: 1880
2594 private Exception <exception>5__2;
2595
2596 // Token: 0x04000759 RID: 1881
2597 private Stream <writeStream>5__3;
2598
2599 // Token: 0x0400075A RID: 1882
2601
2602 // Token: 0x0400075B RID: 1883
2604
2605 // Token: 0x0400075C RID: 1884
2607
2608 // Token: 0x0400075D RID: 1885
2609 private int <bytesRead>5__5;
2610
2611 // Token: 0x0400075E RID: 1886
2613
2614 // Token: 0x0400075F RID: 1887
2615 private int <toWrite>5__6;
2616 }
2617
2618 // Token: 0x02000160 RID: 352
2620 private sealed class <>c__DisplayClass164_0
2621 {
2622 // Token: 0x0600098D RID: 2445 RVA: 0x000212C4 File Offset: 0x0001F4C4
2624 {
2625 }
2626
2627 // Token: 0x0600098E RID: 2446 RVA: 0x000212D8 File Offset: 0x0001F4D8
2629 {
2630 WebClient webClient = this.<>4__this;
2631 WebRequest webRequest = this.request;
2633 WebClient webClient2 = this.<>4__this;
2634 global::System.ComponentModel.AsyncOperation asyncOperation = this.asyncOp;
2635 SendOrPostCallback openReadOperationCompleted = webClient2._openReadOperationCompleted;
2636 bool canceled = webClient2._canceled;
2637 object userSuppliedState = asyncOperation._userSuppliedState;
2638 }
2639
2640 // Token: 0x04000760 RID: 1888
2641 public WebClient <>4__this;
2642
2643 // Token: 0x04000761 RID: 1889
2644 public global::System.ComponentModel.AsyncOperation asyncOp;
2645
2646 // Token: 0x04000762 RID: 1890
2647 public WebRequest request;
2648 }
2649
2650 // Token: 0x02000161 RID: 353
2652 private sealed class <>c__DisplayClass167_0
2653 {
2654 // Token: 0x0600098F RID: 2447 RVA: 0x00021324 File Offset: 0x0001F524
2656 {
2657 }
2658
2659 // Token: 0x06000990 RID: 2448 RVA: 0x00021338 File Offset: 0x0001F538
2661 {
2662 WebRequest webRequest = this.request;
2663 WebRequest webRequest2 = this.request;
2664 WebClient webClient = this.<>4__this;
2665 WebClient webClient2 = this.<>4__this;
2666 global::System.ComponentModel.AsyncOperation asyncOperation = this.asyncOp;
2667 SendOrPostCallback openWriteOperationCompleted = webClient2._openWriteOperationCompleted;
2668 bool canceled = webClient2._canceled;
2669 object userSuppliedState = asyncOperation._userSuppliedState;
2670 }
2671
2672 // Token: 0x04000763 RID: 1891
2673 public WebClient <>4__this;
2674
2675 // Token: 0x04000764 RID: 1892
2676 public global::System.ComponentModel.AsyncOperation asyncOp;
2677
2678 // Token: 0x04000765 RID: 1893
2679 public WebRequest request;
2680 }
2681
2682 // Token: 0x02000162 RID: 354
2684 private sealed class <>c__DisplayClass182_0
2685 {
2686 // Token: 0x06000991 RID: 2449 RVA: 0x00021388 File Offset: 0x0001F588
2688 {
2689 }
2690
2691 // Token: 0x06000992 RID: 2450 RVA: 0x0002139C File Offset: 0x0001F59C
2692 internal void <UploadDataAsync>b__0(byte[] result, Exception error, global::System.ComponentModel.AsyncOperation uploadAsyncOp)
2693 {
2694 WebClient webClient = this.<>4__this;
2695 global::System.ComponentModel.AsyncOperation asyncOperation = this.asyncOp;
2696 object userSuppliedState = uploadAsyncOp._userSuppliedState;
2697 SendOrPostCallback uploadDataOperationCompleted = webClient._uploadDataOperationCompleted;
2698 bool canceled = webClient._canceled;
2699 }
2700
2701 // Token: 0x04000766 RID: 1894
2702 public WebClient <>4__this;
2703
2704 // Token: 0x04000767 RID: 1895
2705 public global::System.ComponentModel.AsyncOperation asyncOp;
2706 }
2707
2708 // Token: 0x02000163 RID: 355
2710 private sealed class <>c__DisplayClass185_0
2711 {
2712 // Token: 0x06000993 RID: 2451 RVA: 0x000213D0 File Offset: 0x0001F5D0
2714 {
2715 }
2716
2717 // Token: 0x06000994 RID: 2452 RVA: 0x000213E4 File Offset: 0x0001F5E4
2718 internal void <UploadFileAsync>b__0(byte[] result, Exception error, global::System.ComponentModel.AsyncOperation uploadAsyncOp)
2719 {
2720 WebClient webClient = this.<>4__this;
2721 global::System.ComponentModel.AsyncOperation asyncOperation = this.asyncOp;
2722 object userSuppliedState = uploadAsyncOp._userSuppliedState;
2723 SendOrPostCallback uploadFileOperationCompleted = webClient._uploadFileOperationCompleted;
2724 bool canceled = webClient._canceled;
2725 }
2726
2727 // Token: 0x04000768 RID: 1896
2728 public WebClient <>4__this;
2729
2730 // Token: 0x04000769 RID: 1897
2731 public global::System.ComponentModel.AsyncOperation asyncOp;
2732 }
2733
2734 // Token: 0x02000164 RID: 356
2736 private sealed class <>c__DisplayClass188_0
2737 {
2738 // Token: 0x06000995 RID: 2453 RVA: 0x00021418 File Offset: 0x0001F618
2740 {
2741 }
2742
2743 // Token: 0x06000996 RID: 2454 RVA: 0x0002142C File Offset: 0x0001F62C
2744 internal void <UploadValuesAsync>b__0(byte[] result, Exception error, global::System.ComponentModel.AsyncOperation uploadAsyncOp)
2745 {
2746 WebClient webClient = this.<>4__this;
2747 global::System.ComponentModel.AsyncOperation asyncOperation = this.asyncOp;
2748 object userSuppliedState = uploadAsyncOp._userSuppliedState;
2749 SendOrPostCallback uploadValuesOperationCompleted = webClient._uploadValuesOperationCompleted;
2750 bool canceled = webClient._canceled;
2751 }
2752
2753 // Token: 0x0400076A RID: 1898
2754 public WebClient <>4__this;
2755
2756 // Token: 0x0400076B RID: 1899
2757 public global::System.ComponentModel.AsyncOperation asyncOp;
2758 }
2759
2760 // Token: 0x02000165 RID: 357
2762 private sealed class <>c__DisplayClass192_0
2763 {
2764 // Token: 0x06000997 RID: 2455 RVA: 0x00021460 File Offset: 0x0001F660
2766 {
2767 }
2768
2769 // Token: 0x06000998 RID: 2456 RVA: 0x00021474 File Offset: 0x0001F674
2771 {
2772 WebClient webClient = this.<>4__this;
2774 if (!true)
2775 {
2776 }
2777 if (!true)
2778 {
2779 }
2781 if (!true)
2782 {
2783 }
2784 if (true || !true)
2785 {
2786 }
2787 }
2788
2789 // Token: 0x0400076C RID: 1900
2790 public WebClient <>4__this;
2791
2792 // Token: 0x0400076D RID: 1901
2794
2795 // Token: 0x0400076E RID: 1902
2797 }
2798
2799 // Token: 0x02000166 RID: 358
2801 [Serializable]
2802 private sealed class <>c
2803 {
2804 // Token: 0x06000999 RID: 2457 RVA: 0x000214A8 File Offset: 0x0001F6A8
2805 // Note: this type is marked as 'beforefieldinit'.
2806 static <>c()
2807 {
2808 }
2809
2810 // Token: 0x0600099A RID: 2458 RVA: 0x000214B8 File Offset: 0x0001F6B8
2811 public <>c()
2812 {
2813 }
2814
2815 // Token: 0x0600099B RID: 2459 RVA: 0x000214CC File Offset: 0x0001F6CC
2817 {
2818 args.RaiseExceptionIfNecessary();
2819 return args._result;
2820 }
2821
2822 // Token: 0x0600099C RID: 2460 RVA: 0x000214E8 File Offset: 0x0001F6E8
2824 {
2826 }
2827
2828 // Token: 0x0600099D RID: 2461 RVA: 0x000214FC File Offset: 0x0001F6FC
2830 {
2831 args.RaiseExceptionIfNecessary();
2832 return args._result;
2833 }
2834
2835 // Token: 0x0600099E RID: 2462 RVA: 0x00021518 File Offset: 0x0001F718
2837 {
2838 webClient.OpenReadCompleted -= completion;
2839 }
2840
2841 // Token: 0x0600099F RID: 2463 RVA: 0x0002152C File Offset: 0x0001F72C
2843 {
2844 args.RaiseExceptionIfNecessary();
2845 return args._result;
2846 }
2847
2848 // Token: 0x060009A0 RID: 2464 RVA: 0x00021548 File Offset: 0x0001F748
2850 {
2851 webClient.OpenWriteCompleted -= completion;
2852 }
2853
2854 // Token: 0x060009A1 RID: 2465 RVA: 0x0002155C File Offset: 0x0001F75C
2856 {
2857 args.RaiseExceptionIfNecessary();
2858 return args._result;
2859 }
2860
2861 // Token: 0x060009A2 RID: 2466 RVA: 0x00021578 File Offset: 0x0001F778
2863 {
2864 webClient.UploadStringCompleted -= completion;
2865 }
2866
2867 // Token: 0x060009A3 RID: 2467 RVA: 0x0002158C File Offset: 0x0001F78C
2869 {
2870 args.RaiseExceptionIfNecessary();
2871 return args._result;
2872 }
2873
2874 // Token: 0x060009A4 RID: 2468 RVA: 0x000215A8 File Offset: 0x0001F7A8
2876 {
2877 webClient.DownloadDataCompleted -= completion;
2878 }
2879
2880 // Token: 0x060009A5 RID: 2469 RVA: 0x000215BC File Offset: 0x0001F7BC
2881 internal object <DownloadFileTaskAsync>b__206_1(global::System.ComponentModel.AsyncCompletedEventArgs args)
2882 {
2883 }
2884
2885 // Token: 0x060009A6 RID: 2470 RVA: 0x000215CC File Offset: 0x0001F7CC
2886 internal void <DownloadFileTaskAsync>b__206_2(WebClient webClient, global::System.ComponentModel.AsyncCompletedEventHandler completion)
2887 {
2888 webClient.DownloadFileCompleted -= completion;
2889 }
2890
2891 // Token: 0x060009A7 RID: 2471 RVA: 0x000215E0 File Offset: 0x0001F7E0
2893 {
2894 args.RaiseExceptionIfNecessary();
2895 return args._result;
2896 }
2897
2898 // Token: 0x060009A8 RID: 2472 RVA: 0x000215FC File Offset: 0x0001F7FC
2900 {
2901 webClient.UploadDataCompleted -= completion;
2902 }
2903
2904 // Token: 0x060009A9 RID: 2473 RVA: 0x00021610 File Offset: 0x0001F810
2906 {
2907 args.RaiseExceptionIfNecessary();
2908 return args._result;
2909 }
2910
2911 // Token: 0x060009AA RID: 2474 RVA: 0x0002162C File Offset: 0x0001F82C
2913 {
2914 webClient.UploadFileCompleted -= completion;
2915 }
2916
2917 // Token: 0x060009AB RID: 2475 RVA: 0x00021640 File Offset: 0x0001F840
2919 {
2920 args.RaiseExceptionIfNecessary();
2921 return args._result;
2922 }
2923
2924 // Token: 0x060009AC RID: 2476 RVA: 0x0002165C File Offset: 0x0001F85C
2926 {
2927 webClient.UploadValuesCompleted -= completion;
2928 }
2929
2930 // Token: 0x0400076F RID: 1903
2931 public static readonly WebClient.<>c <>9;
2932
2933 // Token: 0x04000770 RID: 1904
2935
2936 // Token: 0x04000771 RID: 1905
2938
2939 // Token: 0x04000772 RID: 1906
2941
2942 // Token: 0x04000773 RID: 1907
2944
2945 // Token: 0x04000774 RID: 1908
2947
2948 // Token: 0x04000775 RID: 1909
2950
2951 // Token: 0x04000776 RID: 1910
2953
2954 // Token: 0x04000777 RID: 1911
2956
2957 // Token: 0x04000778 RID: 1912
2959
2960 // Token: 0x04000779 RID: 1913
2962
2963 // Token: 0x0400077A RID: 1914
2964 public static Func<global::System.ComponentModel.AsyncCompletedEventArgs, object> <>9__206_1;
2965
2966 // Token: 0x0400077B RID: 1915
2967 public static Action<WebClient, global::System.ComponentModel.AsyncCompletedEventHandler> <>9__206_2;
2968
2969 // Token: 0x0400077C RID: 1916
2971
2972 // Token: 0x0400077D RID: 1917
2974
2975 // Token: 0x0400077E RID: 1918
2977
2978 // Token: 0x0400077F RID: 1919
2980
2981 // Token: 0x04000780 RID: 1920
2983
2984 // Token: 0x04000781 RID: 1921
2986 }
2987
2988 // Token: 0x02000167 RID: 359
2990 private sealed class <>c__DisplayClass194_0
2991 {
2992 // Token: 0x060009AD RID: 2477 RVA: 0x00021670 File Offset: 0x0001F870
2994 {
2995 }
2996
2997 // Token: 0x060009AE RID: 2478 RVA: 0x00021684 File Offset: 0x0001F884
2999 {
3000 WebClient webClient = this.<>4__this;
3002 if (!true)
3003 {
3004 }
3005 if (!true)
3006 {
3007 }
3009 if (!true)
3010 {
3011 }
3012 if (true || !true)
3013 {
3014 }
3015 }
3016
3017 // Token: 0x04000782 RID: 1922
3018 public WebClient <>4__this;
3019
3020 // Token: 0x04000783 RID: 1923
3022
3023 // Token: 0x04000784 RID: 1924
3024 public OpenReadCompletedEventHandler handler;
3025 }
3026
3027 // Token: 0x02000168 RID: 360
3029 private sealed class <>c__DisplayClass198_0
3030 {
3031 // Token: 0x060009AF RID: 2479 RVA: 0x000216B8 File Offset: 0x0001F8B8
3033 {
3034 }
3035
3036 // Token: 0x060009B0 RID: 2480 RVA: 0x000216CC File Offset: 0x0001F8CC
3038 {
3039 WebClient webClient = this.<>4__this;
3041 if (!true)
3042 {
3043 }
3044 if (!true)
3045 {
3046 }
3048 if (!true)
3049 {
3050 }
3051 if (true || !true)
3052 {
3053 }
3054 }
3055
3056 // Token: 0x04000785 RID: 1925
3057 public WebClient <>4__this;
3058
3059 // Token: 0x04000786 RID: 1926
3061
3062 // Token: 0x04000787 RID: 1927
3063 public OpenWriteCompletedEventHandler handler;
3064 }
3065
3066 // Token: 0x02000169 RID: 361
3068 private sealed class <>c__DisplayClass202_0
3069 {
3070 // Token: 0x060009B1 RID: 2481 RVA: 0x00021700 File Offset: 0x0001F900
3072 {
3073 }
3074
3075 // Token: 0x060009B2 RID: 2482 RVA: 0x00021714 File Offset: 0x0001F914
3077 {
3078 WebClient webClient = this.<>4__this;
3080 if (!true)
3081 {
3082 }
3083 if (!true)
3084 {
3085 }
3087 if (!true)
3088 {
3089 }
3090 if (true || !true)
3091 {
3092 }
3093 }
3094
3095 // Token: 0x04000788 RID: 1928
3096 public WebClient <>4__this;
3097
3098 // Token: 0x04000789 RID: 1929
3100
3101 // Token: 0x0400078A RID: 1930
3102 public UploadStringCompletedEventHandler handler;
3103 }
3104
3105 // Token: 0x0200016A RID: 362
3107 private sealed class <>c__DisplayClass204_0
3108 {
3109 // Token: 0x060009B3 RID: 2483 RVA: 0x00021748 File Offset: 0x0001F948
3111 {
3112 }
3113
3114 // Token: 0x060009B4 RID: 2484 RVA: 0x0002175C File Offset: 0x0001F95C
3116 {
3117 WebClient webClient = this.<>4__this;
3119 if (!true)
3120 {
3121 }
3122 if (!true)
3123 {
3124 }
3126 if (!true)
3127 {
3128 }
3129 if (true || !true)
3130 {
3131 }
3132 }
3133
3134 // Token: 0x0400078B RID: 1931
3135 public WebClient <>4__this;
3136
3137 // Token: 0x0400078C RID: 1932
3139
3140 // Token: 0x0400078D RID: 1933
3141 public DownloadDataCompletedEventHandler handler;
3142 }
3143
3144 // Token: 0x0200016B RID: 363
3146 private sealed class <>c__DisplayClass206_0
3147 {
3148 // Token: 0x060009B5 RID: 2485 RVA: 0x00021790 File Offset: 0x0001F990
3150 {
3151 }
3152
3153 // Token: 0x060009B6 RID: 2486 RVA: 0x000217A4 File Offset: 0x0001F9A4
3154 internal void <DownloadFileTaskAsync>b__0(object sender, global::System.ComponentModel.AsyncCompletedEventArgs e)
3155 {
3156 WebClient webClient = this.<>4__this;
3158 if (!true)
3159 {
3160 }
3161 if (!true)
3162 {
3163 }
3164 global::System.ComponentModel.AsyncCompletedEventHandler asyncCompletedEventHandler = this.handler;
3165 if (!true)
3166 {
3167 }
3168 if (true || !true)
3169 {
3170 }
3171 }
3172
3173 // Token: 0x0400078E RID: 1934
3174 public WebClient <>4__this;
3175
3176 // Token: 0x0400078F RID: 1935
3178
3179 // Token: 0x04000790 RID: 1936
3180 public global::System.ComponentModel.AsyncCompletedEventHandler handler;
3181 }
3182
3183 // Token: 0x0200016C RID: 364
3185 private sealed class <>c__DisplayClass210_0
3186 {
3187 // Token: 0x060009B7 RID: 2487 RVA: 0x000217D8 File Offset: 0x0001F9D8
3189 {
3190 }
3191
3192 // Token: 0x060009B8 RID: 2488 RVA: 0x000217EC File Offset: 0x0001F9EC
3194 {
3195 WebClient webClient = this.<>4__this;
3197 if (!true)
3198 {
3199 }
3200 if (!true)
3201 {
3202 }
3204 if (!true)
3205 {
3206 }
3207 if (true || !true)
3208 {
3209 }
3210 }
3211
3212 // Token: 0x04000791 RID: 1937
3213 public WebClient <>4__this;
3214
3215 // Token: 0x04000792 RID: 1938
3217
3218 // Token: 0x04000793 RID: 1939
3219 public UploadDataCompletedEventHandler handler;
3220 }
3221
3222 // Token: 0x0200016D RID: 365
3224 private sealed class <>c__DisplayClass214_0
3225 {
3226 // Token: 0x060009B9 RID: 2489 RVA: 0x00021820 File Offset: 0x0001FA20
3228 {
3229 }
3230
3231 // Token: 0x060009BA RID: 2490 RVA: 0x00021834 File Offset: 0x0001FA34
3233 {
3234 WebClient webClient = this.<>4__this;
3236 if (!true)
3237 {
3238 }
3239 if (!true)
3240 {
3241 }
3243 if (!true)
3244 {
3245 }
3246 if (true || !true)
3247 {
3248 }
3249 }
3250
3251 // Token: 0x04000794 RID: 1940
3252 public WebClient <>4__this;
3253
3254 // Token: 0x04000795 RID: 1941
3256
3257 // Token: 0x04000796 RID: 1942
3258 public UploadFileCompletedEventHandler handler;
3259 }
3260
3261 // Token: 0x0200016E RID: 366
3263 private sealed class <>c__DisplayClass218_0
3264 {
3265 // Token: 0x060009BB RID: 2491 RVA: 0x00021868 File Offset: 0x0001FA68
3267 {
3268 }
3269
3270 // Token: 0x060009BC RID: 2492 RVA: 0x0002187C File Offset: 0x0001FA7C
3272 {
3273 WebClient webClient = this.<>4__this;
3275 if (!true)
3276 {
3277 }
3278 if (!true)
3279 {
3280 }
3282 if (!true)
3283 {
3284 }
3285 if (true || !true)
3286 {
3287 }
3288 }
3289
3290 // Token: 0x04000797 RID: 1943
3291 public WebClient <>4__this;
3292
3293 // Token: 0x04000798 RID: 1944
3295
3296 // Token: 0x04000799 RID: 1945
3297 public UploadValuesCompletedEventHandler handler;
3298 }
3299 }
3300}
class f__AnonymousType0<< Count > j__TPar
static readonly long
static Delegate Combine(Delegate a, Delegate b)
Definition Delegate.cs:255
static Delegate Remove(Delegate source, Delegate value)
Definition Delegate.cs:278
static void SuppressFinalize(object obj)
Definition GC.cs:116
static CultureInfo InvariantCulture
static void Delete(string path)
Definition File.cs:77
static string GetFullPath(string path)
Definition Path.cs:170
WebClientWriteStream(Stream stream, WebRequest request, WebClient webClient)
override void Dispose(bool disposing)
const int DefaultCopyBufferLength
Task< byte[]> UploadFileTaskAsync(global::System.Uri address, string fileName)
WebHeaderCollection _headers
void DownloadFileAsync(global::System.Uri address, string fileName, object userToken)
Task DownloadFileTaskAsync(global::System.Uri address, string fileName)
void< StartAsyncOperation > b__78_9(object arg)
string UploadString(string address, string method, string data)
SendOrPostCallback _openWriteOperationCompleted
byte[] UploadValues(global::System.Uri address, global::System.Collections.Specialized.NameValueCollection data)
void UploadDataAsync(global::System.Uri address, string method, byte[] data, object userToken)
void UploadValuesAsync(global::System.Uri address, string method, global::System.Collections.Specialized.NameValueCollection data)
Stream OpenRead(string address)
Definition WebClient.cs:867
byte[] UploadValues(string address, string method, global::System.Collections.Specialized.NameValueCollection data)
static bool ByteArrayHasPrefix(byte[] prefix, byte[] byteArray)
byte[] UploadValues(string address, global::System.Collections.Specialized.NameValueCollection data)
void< UploadStringAsync > b__179_0(byte[] bytesResult, Exception error, global::System.ComponentModel.AsyncOperation uploadAsyncOp)
Task< Stream > OpenWriteTaskAsync(global::System.Uri address, string method)
global::System.Net.Cache.RequestCachePolicy CachePolicy
Definition WebClient.cs:669
byte[] UploadBits(WebRequest request, Stream readStream, byte[] buffer, int chunkSize, byte[] header, byte[] footer)
void< StartAsyncOperation > b__78_8(object arg)
Stream OpenWrite(string address)
Definition WebClient.cs:888
void DownloadDataAsync(global::System.Uri address, object userToken)
void< StartAsyncOperation > b__78_1(object arg)
SendOrPostCallback _uploadValuesOperationCompleted
SendOrPostCallback _reportUploadProgressChanged
void< StartAsyncOperation > b__78_2(object arg)
Task< string > UploadStringTaskAsync(string address, string data)
void< StartAsyncOperation > b__78_0(object arg)
byte[] UploadData(global::System.Uri address, string method, byte[] data)
Definition WebClient.cs:952
void OpenWriteAsync(global::System.Uri address, string method)
byte[] UploadFile(string address, string fileName)
Task< string > UploadStringTaskAsync(global::System.Uri address, string data)
WebHeaderCollection ResponseHeaders
Definition WebClient.cs:617
global::System.Uri GetUri(global::System.Uri address)
byte[] DownloadBits(WebRequest request, Stream writeStream)
void DownloadFileAsyncCallback(byte[] returnBytes, Exception exception, object state)
void UploadStringAsync(global::System.Uri address, string data)
void< StartAsyncOperation > b__78_6(object arg)
Task< byte[]> UploadValuesTaskAsync(string address, string method, global::System.Collections.Specialized.NameValueCollection data)
bool< AllowReadStreamBuffering > k__BackingField
string UploadString(global::System.Uri address, string method, string data)
global::System.ComponentModel.AsyncOperation _asyncOp
virtual void OnOpenReadCompleted(OpenReadCompletedEventArgs e)
Definition WebClient.cs:385
void< StartAsyncOperation > b__78_10(object arg)
byte[] UploadData(global::System.Uri address, byte[] data)
Definition WebClient.cs:938
virtual void OnDownloadFileCompleted(global::System.ComponentModel.AsyncCompletedEventArgs e)
Definition WebClient.cs:294
WebRequest _webRequest
SendOrPostCallback _downloadFileOperationCompleted
Task< byte[]> DownloadDataTaskAsync(global::System.Uri address)
UploadDataCompletedEventHandler UploadDataCompleted
Definition WebClient.cs:124
Task< byte[]> UploadValuesTaskAsync(global::System.Uri address, global::System.Collections.Specialized.NameValueCollection data)
void CopyHeadersTo(WebRequest request)
SendOrPostCallback _openReadOperationCompleted
global::System.Collections.Specialized.NameValueCollection _requestParameters
ICredentials _credentials
void< StartAsyncOperation > b__78_4(object arg)
SendOrPostCallback _uploadFileOperationCompleted
static readonly char[] s_parseContentTypeSeparators
SendOrPostCallback _reportDownloadProgressChanged
global::System.ComponentModel.AsyncOperation StartAsyncOperation(object userToken)
Definition WebClient.cs:419
bool< AllowWriteStreamBuffering > k__BackingField
static readonly Encoding[] s_knownEncodings
DownloadStringCompletedEventHandler DownloadStringCompleted
Definition WebClient.cs:40
virtual WebResponse GetWebResponse(WebRequest request, IAsyncResult result)
Definition WebClient.cs:759
OpenReadCompletedEventHandler OpenReadCompleted
Definition WebClient.cs:187
SendOrPostCallback _uploadDataOperationCompleted
UploadProgressChangedEventHandler UploadProgressChanged
Definition WebClient.cs:250
DownloadProgressChangedEventHandler DownloadProgressChanged
Definition WebClient.cs:229
void OpenFileInternal(bool needsHeaderAndBoundary, string fileName, FileStream fs, byte[] buffer, byte[] formHeaderBytes, byte[] boundaryBytes)
Definition WebClient.cs:979
static Exception GetExceptionToPropagate(Exception e)
Task< Stream > OpenReadTaskAsync(global::System.Uri address)
Task< byte[]> UploadDataTaskAsync(global::System.Uri address, byte[] data)
virtual WebResponse GetWebResponse(WebRequest request)
Definition WebClient.cs:735
Stream OpenWrite(global::System.Uri address, string method)
Definition WebClient.cs:910
global::System.Uri GetUri(string address)
static byte[] UrlEncodeBytesToBytesInternal(byte[] bytes, int offset, int count, bool alwaysCreateReturnValue)
virtual void OnDownloadDataCompleted(DownloadDataCompletedEventArgs e)
Definition WebClient.cs:281
void UploadFileAsync(global::System.Uri address, string fileName)
global::System.Collections.Specialized.NameValueCollection QueryString
Definition WebClient.cs:582
void DownloadStringAsyncCallback(byte[] returnBytes, Exception exception, object state)
byte[] UploadData(string address, string method, byte[] data)
Definition WebClient.cs:945
WebResponse _webResponse
string MapToDefaultMethod(global::System.Uri address)
void DownloadStringAsync(global::System.Uri address, object userToken)
OpenWriteCompletedEventHandler OpenWriteCompleted
Definition WebClient.cs:208
byte[] DownloadData(global::System.Uri address)
Definition WebClient.cs:817
byte[] UploadDataInternal(global::System.Uri address, string method, byte[] data, [Out] WebRequest request)
Definition WebClient.cs:969
Task< byte[]> UploadDataTaskAsync(string address, string method, byte[] data)
const string DefaultUploadFileContentType
Task< Stream > OpenWriteTaskAsync(global::System.Uri address)
virtual void OnUploadStringCompleted(UploadStringCompletedEventArgs e)
Definition WebClient.cs:320
virtual void OnOpenWriteCompleted(OpenWriteCompletedEventArgs e)
Definition WebClient.cs:398
string GetStringUsingEncoding(WebRequest request, byte[] data)
Task< byte[]> UploadDataTaskAsync(global::System.Uri address, string method, byte[] data)
static string UrlEncode(string str)
UploadFileCompletedEventHandler UploadFileCompleted
Definition WebClient.cs:145
byte[] UploadValues(global::System.Uri address, string method, global::System.Collections.Specialized.NameValueCollection data)
Task< byte[]> UploadFileTaskAsync(string address, string method, string fileName)
const string UploadFileContentType
void< StartAsyncOperation > b__78_3(object arg)
void InvokeOperationCompleted(global::System.ComponentModel.AsyncOperation asyncOp, SendOrPostCallback callback, global::System.ComponentModel.AsyncCompletedEventArgs eventArgs)
WebClient.ProgressData _progress
void UploadValuesAsync(global::System.Uri address, string method, global::System.Collections.Specialized.NameValueCollection data, object userToken)
string UploadString(global::System.Uri address, string data)
byte[] DownloadData(string address)
Definition WebClient.cs:810
void< StartAsyncOperation > b__78_7(object arg)
void DownloadFile(global::System.Uri address, string fileName)
Definition WebClient.cs:844
void UploadFileAsync(global::System.Uri address, string method, string fileName)
void< StartAsyncOperation > b__78_5(object arg)
WriteStreamClosedEventHandler WriteStreamClosed
void UploadDataAsync(global::System.Uri address, byte[] data)
SendOrPostCallback _downloadDataOperationCompleted
virtual WebRequest GetWebRequest(global::System.Uri address)
Definition WebClient.cs:711
UploadStringCompletedEventHandler UploadStringCompleted
Definition WebClient.cs:103
global::System.ComponentModel.AsyncCompletedEventHandler DownloadFileCompleted
Definition WebClient.cs:82
void UploadBitsAsync(WebRequest request, Stream readStream, byte[] buffer, int chunkSize, byte[] header, byte[] footer, global::System.ComponentModel.AsyncOperation asyncOp, Action< byte[], Exception, global::System.ComponentModel.AsyncOperation > completionDelegate)
const int DefaultDownloadBufferLength
virtual void OnWriteStreamClosed(WriteStreamClosedEventArgs e)
SendOrPostCallback _uploadStringOperationCompleted
Task< Stream > OpenReadTaskAsync(string address)
Task< Stream > OpenWriteTaskAsync(string address, string method)
global::System.Uri _baseAddress
virtual void OnUploadFileCompleted(UploadFileCompletedEventArgs e)
Definition WebClient.cs:346
Stream OpenWrite(string address, string method)
Definition WebClient.cs:903
void UploadFileAsync(global::System.Uri address, string method, string fileName, object userToken)
static void AbortRequest(WebRequest request)
virtual void OnDownloadStringCompleted(DownloadStringCompletedEventArgs e)
Definition WebClient.cs:268
SendOrPostCallback _downloadStringOperationCompleted
byte[] UploadFile(global::System.Uri address, string fileName)
static bool IsSafe(char ch)
void UploadValuesAsync(global::System.Uri address, global::System.Collections.Specialized.NameValueCollection data)
byte[] UploadFile(global::System.Uri address, string method, string fileName)
Task< string > DownloadStringTaskAsync(string address)
virtual void OnUploadValuesCompleted(UploadValuesCompletedEventArgs e)
Definition WebClient.cs:359
WebHeaderCollection Headers
Definition WebClient.cs:546
string UploadString(string address, string data)
global::System.Net.Cache.RequestCachePolicy< CachePolicy > k__BackingField
void OpenReadAsync(global::System.Uri address, object userToken)
void DownloadDataAsyncCallback(byte[] returnBytes, Exception exception, object state)
Task< Stream > OpenWriteTaskAsync(string address)
Task< byte[]> UploadValuesTaskAsync(string address, global::System.Collections.Specialized.NameValueCollection data)
void OpenWriteAsync(global::System.Uri address)
void DownloadFile(string address, string fileName)
Definition WebClient.cs:838
void UploadStringAsync(global::System.Uri address, string method, string data, object userToken)
byte[] UploadFile(string address, string method, string fileName)
Task< WebResponse > GetWebResponseTaskAsync(WebRequest request)
Definition WebClient.cs:783
virtual void OnDownloadProgressChanged(DownloadProgressChangedEventArgs e)
Definition WebClient.cs:307
static void ThrowIfNull(object argument, string parameterName)
Task< byte[]> UploadDataTaskAsync(string address, byte[] data)
ICredentials Credentials
Definition WebClient.cs:492
Task< string > DownloadStringTaskAsync(global::System.Uri address)
Stream OpenWrite(global::System.Uri address)
Definition WebClient.cs:896
void UploadStringAsync(global::System.Uri address, string method, string data)
DownloadDataCompletedEventHandler DownloadDataCompleted
Definition WebClient.cs:61
string DownloadString(global::System.Uri address)
string DownloadString(string address)
void DownloadBitsAsync(WebRequest request, Stream writeStream, global::System.ComponentModel.AsyncOperation asyncOp, Action< byte[], Exception, global::System.ComponentModel.AsyncOperation > completionDelegate)
virtual void OnUploadDataCompleted(UploadDataCompletedEventArgs e)
Definition WebClient.cs:333
void UploadDataAsync(global::System.Uri address, string method, byte[] data)
void PostProgressChanged(global::System.ComponentModel.AsyncOperation asyncOp, WebClient.ProgressData progress)
static char IntToHex(int n)
void DownloadStringAsync(global::System.Uri address)
Task< string > UploadStringTaskAsync(string address, string method, string data)
virtual void OnUploadProgressChanged(UploadProgressChangedEventArgs e)
Definition WebClient.cs:372
Task< byte[]> UploadFileTaskAsync(global::System.Uri address, string method, string fileName)
Task< string > UploadStringTaskAsync(global::System.Uri address, string method, string data)
Task< byte[]> UploadFileTaskAsync(string address, string fileName)
Task DownloadFileTaskAsync(string address, string fileName)
UploadValuesCompletedEventHandler UploadValuesCompleted
Definition WebClient.cs:166
byte[] GetValuesToUpload(global::System.Collections.Specialized.NameValueCollection data)
void OpenReadAsync(global::System.Uri address)
Task< byte[]> DownloadDataTaskAsync(string address)
const string UploadValuesContentType
void DownloadDataAsync(global::System.Uri address)
byte[] DownloadDataInternal(global::System.Uri address, [Out] WebRequest request)
Definition WebClient.cs:829
Task< byte[]> UploadValuesTaskAsync(global::System.Uri address, string method, global::System.Collections.Specialized.NameValueCollection data)
void DownloadFileAsync(global::System.Uri address, string fileName)
byte[] UploadData(string address, byte[] data)
Definition WebClient.cs:930
void HandleCompletion< T, TAsyncCompletedEventArgs, TCompletionDelegate >(TaskCompletionSource< T > tcs, TAsyncCompletedEventArgs e, Func< TAsyncCompletedEventArgs, T > getResult, TCompletionDelegate handler, Action< WebClient, TCompletionDelegate > unregisterHandler)
void OpenWriteAsync(global::System.Uri address, string method, object userToken)
Stream OpenRead(global::System.Uri address)
Definition WebClient.cs:874
static IWebProxy DefaultWebProxy
static WebRequest Create(global::System.Uri requestUri, bool useUriBase)
static Encoding BigEndianUnicode
Definition Encoding.cs:808
static Encoding Unicode
Definition Encoding.cs:799
CodePageDataItem dataItem
Definition Encoding.cs:1017
static Encoding UTF8
Definition Encoding.cs:828
static Encoding UTF32
Definition Encoding.cs:838
static Encoding ASCII
Definition Encoding.cs:348
static Encoding Default
Definition Encoding.cs:728
static int Decrement(int location)
new Type GetType()
Definition Type.cs:287
Uri(string uriString)
Definition Uri.cs:279
string Scheme
Definition Uri.cs:1094
static DateTime Now
Definition DateTime.cs:530
AsyncTaskMethodBuilder< WebResponse ><> t__builder
void SetStateMachine(IAsyncStateMachine stateMachine)
AsyncVoidMethodBuilder t__builder
global::System.ComponentModel.AsyncOperation asyncOp
byte[]< copyBuffer > ConfiguredTaskAwaitable< WebResponse >.ConfiguredTaskAwaiter u__1
ConfiguredValueTaskAwaitable< int >.ConfiguredValueTaskAwaiter u__2
ConfiguredValueTaskAwaitable.ConfiguredValueTaskAwaiter u__3
Action< byte[], Exception, global::System.ComponentModel.AsyncOperation > completionDelegate
void SetStateMachine(IAsyncStateMachine stateMachine)
AsyncVoidMethodBuilder t__builder
ConfiguredValueTaskAwaitable< int >.ConfiguredValueTaskAwaiter u__3
ConfiguredTaskAwaitable< Stream >.ConfiguredTaskAwaiter u__1
Action< byte[], Exception, global::System.ComponentModel.AsyncOperation > completionDelegate
ConfiguredValueTaskAwaitable.ConfiguredValueTaskAwaiter u__2
void SetStateMachine(IAsyncStateMachine stateMachine)
global::System.ComponentModel.AsyncOperation asyncOp