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
Cookie.cs
Go to the documentation of this file.
1using System;
5
6namespace System.Net
7{
8 // Token: 0x0200020C RID: 524
10 public sealed class Cookie
11 {
12 // Token: 0x06000CC3 RID: 3267 RVA: 0x00028A28 File Offset: 0x00026C28
13 public Cookie()
14 {
21 base..ctor();
22 }
23
24 // Token: 0x06000CC4 RID: 3268 RVA: 0x00028A68 File Offset: 0x00026C68
25 public Cookie(string name, string value)
26 {
33 base..ctor();
36 }
37
38 // Token: 0x06000CC5 RID: 3269 RVA: 0x00028AB4 File Offset: 0x00026CB4
39 public Cookie(string name, string value, string path)
40 {
41 if (path == null)
42 {
43 }
44 }
45
46 // Token: 0x06000CC6 RID: 3270 RVA: 0x00028AC4 File Offset: 0x00026CC4
47 public Cookie(string name, string value, string path, string domain)
48 {
49 this.Domain = domain;
50 }
51
52 // Token: 0x17000299 RID: 665
53 // (get) Token: 0x06000CC7 RID: 3271 RVA: 0x00028ADC File Offset: 0x00026CDC
54 // (set) Token: 0x06000CC8 RID: 3272 RVA: 0x00028AF0 File Offset: 0x00026CF0
55 public string Comment
56 {
57 get
58 {
59 return this.m_comment;
60 }
61 set
62 {
63 if (value == null)
64 {
65 }
66 }
67 }
68
69 // Token: 0x1700029A RID: 666
70 // (get) Token: 0x06000CC9 RID: 3273 RVA: 0x00028B00 File Offset: 0x00026D00
71 // (set) Token: 0x06000CCA RID: 3274 RVA: 0x00028B14 File Offset: 0x00026D14
72 public global::System.Uri CommentUri
73 {
74 get
75 {
76 return this.m_commentUri;
77 }
78 set
79 {
81 }
82 }
83
84 // Token: 0x1700029B RID: 667
85 // (get) Token: 0x06000CCB RID: 3275 RVA: 0x00028B28 File Offset: 0x00026D28
86 // (set) Token: 0x06000CCC RID: 3276 RVA: 0x00028B3C File Offset: 0x00026D3C
87 public bool HttpOnly
88 {
89 get
90 {
91 return this.m_httpOnly;
92 }
93 set
94 {
95 }
96 }
97
98 // Token: 0x1700029C RID: 668
99 // (get) Token: 0x06000CCD RID: 3277 RVA: 0x00028B4C File Offset: 0x00026D4C
100 // (set) Token: 0x06000CCE RID: 3278 RVA: 0x00028B60 File Offset: 0x00026D60
101 public bool Discard
102 {
103 get
104 {
105 return this.m_discard;
106 }
107 set
108 {
109 }
110 }
111
112 // Token: 0x1700029D RID: 669
113 // (get) Token: 0x06000CCF RID: 3279 RVA: 0x00028B70 File Offset: 0x00026D70
114 // (set) Token: 0x06000CD0 RID: 3280 RVA: 0x00028B84 File Offset: 0x00026D84
115 public string Domain
116 {
117 get
118 {
119 return this.m_domain;
120 }
121 set
122 {
123 if (value == null)
124 {
125 }
127 }
128 }
129
130 // Token: 0x1700029E RID: 670
131 // (get) Token: 0x06000CD1 RID: 3281 RVA: 0x00028B9C File Offset: 0x00026D9C
132 private string _Domain
133 {
134 get
135 {
136 string domain;
137 do
138 {
140 if (this.m_domain_implicit)
141 {
142 }
143 domain = this.m_domain;
144 }
145 while (domain._stringLength == 0);
146 if (this.IsQuotedDomain)
147 {
148 return "$Domain=";
149 }
150 return "$Domain=" + "\"" + domain + "\"";
151 }
152 }
153
154 // Token: 0x1700029F RID: 671
155 // (get) Token: 0x06000CD2 RID: 3282 RVA: 0x00028BEC File Offset: 0x00026DEC
156 // (set) Token: 0x06000CD3 RID: 3283 RVA: 0x00028C00 File Offset: 0x00026E00
157 internal bool DomainImplicit
158 {
159 get
160 {
161 return this.m_domain_implicit;
162 }
163 set
164 {
165 }
166 }
167
168 // Token: 0x170002A0 RID: 672
169 // (get) Token: 0x06000CD4 RID: 3284 RVA: 0x00028C10 File Offset: 0x00026E10
170 // (set) Token: 0x06000CD5 RID: 3285 RVA: 0x00028C40 File Offset: 0x00026E40
171 public bool Expired
172 {
173 get
174 {
175 int num = 1;
177 if (num == 0)
178 {
179 }
181 DateTime dateTime;
182 return dateTime <= now;
183 }
184 set
185 {
188 }
189 }
190
191 // Token: 0x170002A1 RID: 673
192 // (get) Token: 0x06000CD6 RID: 3286 RVA: 0x00028C5C File Offset: 0x00026E5C
193 // (set) Token: 0x06000CD7 RID: 3287 RVA: 0x00028C74 File Offset: 0x00026E74
195 {
196 get
197 {
199 DateTime dateTime;
200 return dateTime;
201 }
202 set
203 {
205 }
206 }
207
208 // Token: 0x170002A2 RID: 674
209 // (get) Token: 0x06000CD8 RID: 3288 RVA: 0x00028C88 File Offset: 0x00026E88
210 // (set) Token: 0x06000CD9 RID: 3289 RVA: 0x00028C9C File Offset: 0x00026E9C
211 public string Name
212 {
213 get
214 {
215 return this.m_name;
216 }
217 set
218 {
219 if (!true)
220 {
221 }
223 bool flag2 = this.InternalSetName(value);
224 }
225 }
226
227 // Token: 0x06000CDA RID: 3290 RVA: 0x00028CD8 File Offset: 0x00026ED8
228 internal bool InternalSetName(string value)
229 {
230 if (!true)
231 {
232 }
234 long num = 0L;
235 char c = value[(int)num];
236 if (!true)
237 {
238 }
239 return true;
240 }
241
242 // Token: 0x170002A3 RID: 675
243 // (get) Token: 0x06000CDB RID: 3291 RVA: 0x00028D00 File Offset: 0x00026F00
244 // (set) Token: 0x06000CDC RID: 3292 RVA: 0x00028D14 File Offset: 0x00026F14
245 public string Path
246 {
247 get
248 {
249 return this.m_path;
250 }
251 set
252 {
253 }
254 }
255
256 // Token: 0x170002A4 RID: 676
257 // (get) Token: 0x06000CDD RID: 3293 RVA: 0x00028D24 File Offset: 0x00026F24
258 private string _Path
259 {
260 get
261 {
262 do
263 {
265 if (this.m_path_implicit)
266 {
267 }
268 }
269 while (this.m_path._stringLength == 0);
270 string text;
271 return text;
272 }
273 }
274
275 // Token: 0x170002A5 RID: 677
276 // (get) Token: 0x06000CDE RID: 3294 RVA: 0x00028D50 File Offset: 0x00026F50
277 internal bool Plain
278 {
279 get
280 {
281 /*
282An exception occurred when decompiling this method (06000CDE)
283
284ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean System.Net.Cookie::get_Plain()
285
286 ---> System.Exception: Basic block has to end with unconditional control flow.
287{
288 Block_0:
289 stloc:CookieVariant(var_0_06, ldfld:CookieVariant(Cookie::m_cookieVariant, ldloc:Cookie(this)))
290}
291
292 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
293 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
294 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
295 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
296 --- End of inner exception stack trace ---
297 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
298 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
299*/;
300 }
301 }
302
303 // Token: 0x06000CDF RID: 3295 RVA: 0x00028D64 File Offset: 0x00026F64
304 internal Cookie Clone()
305 {
306 /*
307An exception occurred when decompiling this method (06000CDF)
308
309ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Net.Cookie System.Net.Cookie::Clone()
310
311 ---> System.Exception: Basic block has to end with unconditional control flow.
312{
313 IL_004C:
314 stloc:Uri(var_6_52, ldfld:Uri(Cookie::m_commentUri, ldloc:Cookie(this)))
315 stloc:bool(var_7_5A, ldfld:bool(Cookie::m_httpOnly, ldloc:Cookie(this)))
316 stloc:bool(var_8_62, ldfld:bool(Cookie::m_discard, ldloc:Cookie(this)))
317 stloc:DateTime(var_9_6A, ldfld:DateTime(Cookie::m_expires, ldloc:Cookie(this)))
318 stloc:int32(var_10_72, ldfld:int32(Cookie::m_version, ldloc:Cookie(this)))
319 stloc:bool(var_11_7A, ldfld:bool(Cookie::m_secure, ldloc:Cookie(this)))
320 stloc:CookieVariant(var_12_82, ldfld:CookieVariant(Cookie::m_cookieVariant, ldloc:Cookie(this)))
321}
322
323 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
324 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
325 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
326 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
327 --- End of inner exception stack trace ---
328 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
329 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
330*/;
331 }
332
333 // Token: 0x06000CE0 RID: 3296 RVA: 0x00028DF4 File Offset: 0x00026FF4
334 private static bool IsDomainEqualToHost(string domain, string host)
335 {
336 for (;;)
337 {
338 int stringLength = domain._stringLength;
339 int num;
340 if (num != 0)
341 {
342 return;
343 }
344 }
345 }
346
347 // Token: 0x06000CE1 RID: 3297 RVA: 0x00028E0C File Offset: 0x0002700C
348 internal bool VerifySetDefaults(CookieVariant variant, global::System.Uri uri, bool isLocalDomain, string localDomain, bool set_default, bool isThrow)
349 {
350 string host = uri.Host;
351 int port = uri.Port;
352 string absolutePath = uri.AbsolutePath;
353 if (this.m_version != 0)
354 {
355 }
356 int num = 1;
358 string name = this.m_name;
359 if (name != null)
360 {
361 int stringLength = name._stringLength;
362 if (stringLength != 0)
363 {
364 long num2 = 0L;
365 char c = name[(int)num2];
366 string name2 = this.m_name;
367 if (stringLength == 0)
368 {
369 }
370 }
371 }
372 string value = this.m_value;
373 if (value != null)
374 {
375 int stringLength2 = value._stringLength;
376 long num3 = 0L;
377 char c2 = value[(int)num3];
378 string value2 = this.m_value;
379 int stringLength3 = value2._stringLength;
380 char c3 = value2[(int)num3];
381 string value3 = this.m_value;
382 if (stringLength3 == 0)
383 {
384 }
385 }
386 if ("Value" != null && "Value" == null)
387 {
388 throw new ArrayTypeMismatchException();
389 }
390 string value4 = this.m_value;
391 if (value4 != null)
392 {
393 string value5 = this.m_value;
394 return "The '{0}'='{1}' part of the cookie is invalid." != null;
395 }
396 return "<null>" != null;
397 }
398
399 // Token: 0x06000CE2 RID: 3298 RVA: 0x0002906C File Offset: 0x0002726C
400 private static bool DomainCharsTest(string name)
401 {
402 }
403
404 // Token: 0x170002A6 RID: 678
405 // (get) Token: 0x06000CE3 RID: 3299 RVA: 0x00029080 File Offset: 0x00027280
406 // (set) Token: 0x06000CE4 RID: 3300 RVA: 0x00029094 File Offset: 0x00027294
407 public string Port
408 {
409 get
410 {
411 return this.m_port;
412 }
413 set
414 {
415 if (value != null && value._stringLength != 0)
416 {
417 long num = 0L;
418 char c = value[(int)num];
419 int stringLength = value._stringLength;
420 char c2 = value[(int)num];
421 if (stringLength == 0)
422 {
423 }
424 return;
425 }
426 }
427 }
428
429 // Token: 0x170002A7 RID: 679
430 // (get) Token: 0x06000CE5 RID: 3301 RVA: 0x000290FC File Offset: 0x000272FC
431 internal int[] PortList
432 {
433 get
434 {
435 return this.m_port_list;
436 }
437 }
438
439 // Token: 0x170002A8 RID: 680
440 // (get) Token: 0x06000CE6 RID: 3302 RVA: 0x00029110 File Offset: 0x00027310
441 private string _Port
442 {
443 get
444 {
445 if (this.m_port_implicit)
446 {
447 }
448 if (this.m_port._stringLength != 0)
449 {
450 string text;
451 return text;
452 }
453 string text2;
454 return text2;
455 }
456 }
457
458 // Token: 0x170002A9 RID: 681
459 // (get) Token: 0x06000CE7 RID: 3303 RVA: 0x00029138 File Offset: 0x00027338
460 // (set) Token: 0x06000CE8 RID: 3304 RVA: 0x0002914C File Offset: 0x0002734C
461 public bool Secure
462 {
463 get
464 {
465 return this.m_secure;
466 }
467 set
468 {
469 }
470 }
471
472 // Token: 0x170002AA RID: 682
473 // (get) Token: 0x06000CE9 RID: 3305 RVA: 0x0002915C File Offset: 0x0002735C
475 {
476 get
477 {
478 DateTime timeStamp = this.m_timeStamp;
479 DateTime dateTime;
480 return dateTime;
481 }
482 }
483
484 // Token: 0x170002AB RID: 683
485 // (get) Token: 0x06000CEA RID: 3306 RVA: 0x00029174 File Offset: 0x00027374
486 // (set) Token: 0x06000CEB RID: 3307 RVA: 0x00029188 File Offset: 0x00027388
487 public string Value
488 {
489 get
490 {
491 return this.m_value;
492 }
493 set
494 {
495 if (value == null)
496 {
497 }
498 }
499 }
500
501 // Token: 0x170002AC RID: 684
502 // (get) Token: 0x06000CEC RID: 3308 RVA: 0x00029198 File Offset: 0x00027398
503 // (set) Token: 0x06000CED RID: 3309 RVA: 0x000291AC File Offset: 0x000273AC
505 {
506 get
507 {
508 return this.m_cookieVariant;
509 }
510 set
511 {
513 }
514 }
515
516 // Token: 0x170002AD RID: 685
517 // (get) Token: 0x06000CEE RID: 3310 RVA: 0x000291C0 File Offset: 0x000273C0
518 internal string DomainKey
519 {
520 get
521 {
522 /*
523An exception occurred when decompiling this method (06000CEE)
524
525ICSharpCode.Decompiler.DecompilerException: Error decompiling System.String System.Net.Cookie::get_DomainKey()
526
527 ---> System.Exception: Basic block has to end with unconditional control flow.
528{
529 Block_0:
530 stloc:bool(var_0_06, ldfld:bool(Cookie::m_domain_implicit, ldloc:Cookie(this)))
531}
532
533 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
534 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
535 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
536 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
537 --- End of inner exception stack trace ---
538 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
539 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
540*/;
541 }
542 }
543
544 // Token: 0x170002AE RID: 686
545 // (get) Token: 0x06000CEF RID: 3311 RVA: 0x000291D4 File Offset: 0x000273D4
546 // (set) Token: 0x06000CF0 RID: 3312 RVA: 0x000291E8 File Offset: 0x000273E8
547 public int Version
548 {
549 get
550 {
551 return this.m_version;
552 }
553 set
554 {
556 if (value != 0)
557 {
560 }
561 }
562 }
563
564 // Token: 0x170002AF RID: 687
565 // (get) Token: 0x06000CF1 RID: 3313 RVA: 0x00029210 File Offset: 0x00027410
566 private string _Version
567 {
568 get
569 {
570 if (this.m_version != 0 && this.IsQuotedVersion)
571 {
572 return "\"";
573 }
575 if (this.IsQuotedVersion)
576 {
577 string text;
578 return text;
579 }
580 string text2;
581 return text2;
582 }
583 }
584
585 // Token: 0x06000CF2 RID: 3314 RVA: 0x00029248 File Offset: 0x00027448
586 internal static IComparer GetComparer()
587 {
588 /*
589An exception occurred when decompiling this method (06000CF2)
590
591ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Collections.IComparer System.Net.Cookie::GetComparer()
592
593 ---> System.Exception: Basic block has to end with unconditional control flow.
594{
595 IL_0000:
596 brtrue(IL_0000, ldc.i4:bool(1))
597}
598
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 1852
600 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
601 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
602 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
603 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
604 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
605 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
606 --- End of inner exception stack trace ---
607 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
608 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
609*/;
610 }
611
612 // Token: 0x06000CF3 RID: 3315 RVA: 0x00029258 File Offset: 0x00027458
613 public override bool Equals(object comparand)
614 {
615 /*
616An exception occurred when decompiling this method (06000CF3)
617
618ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean System.Net.Cookie::Equals(System.Object)
619
620 ---> System.Exception: Basic block has to end with unconditional control flow.
621{
622 IL_0032:
623 stloc:int32(var_9_38, ldfld:int32(Cookie::m_version, ldloc:Cookie(this)))
624}
625
626 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
627 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
628 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
629 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
630 --- End of inner exception stack trace ---
631 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
632 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
633*/;
634 }
635
636 // Token: 0x06000CF4 RID: 3316 RVA: 0x000292A0 File Offset: 0x000274A0
637 public override int GetHashCode()
638 {
639 string name = this.m_name;
640 if ((name == null || name != null) && ("=" == null || "=" != null))
641 {
642 string value = this.m_value;
643 if ((value == null || value != null) && (";" == null || ";" != null))
644 {
645 string path = this.m_path;
646 if ((path == null || path != null) && ("; " == null || "; " != null))
647 {
648 string domain = this.m_domain;
649 if ((domain == null || domain != null) && ("; " == null || "; " != null))
650 {
651 int version = this.m_version;
652 string text;
653 if (text == null || text != null)
654 {
655 }
656 }
657 }
658 }
659 }
660 throw new ArrayTypeMismatchException();
661 }
662
663 // Token: 0x06000CF5 RID: 3317 RVA: 0x00029334 File Offset: 0x00027534
664 public override string ToString()
665 {
666 string domain = this._Domain;
667 string path = this._Path;
668 string port = this._Port;
669 string version = this._Version;
670 if (version._stringLength != 0)
671 {
672 string text = version + "; ";
673 if (text == null)
674 {
675 return text;
676 }
677 }
678 string name = this.m_name;
679 if ((name == null || name != null) && ("=" == null || "=" != null))
680 {
681 string value = this.m_value;
682 if (value == null || value != null)
683 {
684 if (path._stringLength != 0)
685 {
686 string text2 = "; " + path;
687 if (text2 == null)
688 {
689 return text2;
690 }
691 }
692 if (domain._stringLength != 0)
693 {
694 string text3 = "; " + domain;
695 if (text3 == null)
696 {
697 return text3;
698 }
699 }
700 if (port._stringLength != 0)
701 {
702 string text4 = "; " + port;
703 if (text4 == null)
704 {
705 return text4;
706 }
707 }
708 string text5;
709 bool flag = text5 == "=";
710 }
711 }
712 throw new ArrayTypeMismatchException();
713 }
714
715 // Token: 0x06000CF6 RID: 3318 RVA: 0x00029414 File Offset: 0x00027614
716 internal string ToServerString()
717 {
718 string name = this.m_name;
719 string value = this.m_value;
720 string text = name + "=" + value;
721 string comment = this.m_comment;
722 if (comment != null)
723 {
724 int stringLength = comment._stringLength;
725 string text2 = text + "; Comment=" + comment;
726 }
727 global::System.Uri commentUri = this.m_commentUri;
728 if ("; Comment=" == null)
729 {
730 }
731 global::System.Uri commentUri2 = this.m_commentUri;
732 string text3;
733 if (this.m_discard)
734 {
735 string text4;
736 text3 = text4 + "; Discard";
737 }
739 string text7;
740 string text9;
741 if (domain_implicit)
742 {
744 if (!domain_implicit)
745 {
746 }
749 DateTime dateTime;
750 double totalSeconds = (dateTime - now).TotalSeconds;
752 string text6;
753 string text5 = text3 + "; Max-Age=" + text6;
754 if (!this.m_path_implicit)
755 {
756 string path = this.m_path;
757 while (path == null)
758 {
759 }
760 int stringLength2 = path._stringLength;
761 return text7 + "; Path=" + path;
762 }
763 CookieVariant cookieVariant = this.m_cookieVariant;
764 string text8;
765 if (!this.m_port_implicit)
766 {
767 string port = this.m_port;
768 if (port != null)
769 {
770 int stringLength3 = port._stringLength;
771 text8 = text5 + "; Port=" + port;
772 }
773 }
774 int version = this.m_version;
776 string text10;
777 text9 = text8 + "; Version=" + text10;
778 bool flag = text9 == "=";
779 }
780 string domain = this.m_domain;
781 while (domain == null)
782 {
783 }
784 int stringLength4 = domain._stringLength;
785 text7 = text9 + "; Domain=" + domain;
786 return text7;
787 }
788
789 // Token: 0x06000CF7 RID: 3319 RVA: 0x0002959C File Offset: 0x0002779C
790 // Note: this type is marked as 'beforefieldinit'.
791 static Cookie()
792 {
793 }
794
795 // Token: 0x04000AE6 RID: 2790
796 internal const int MaxSupportedVersion = 1;
797
798 // Token: 0x04000AE7 RID: 2791
799 internal const string CommentAttributeName = "Comment";
800
801 // Token: 0x04000AE8 RID: 2792
802 internal const string CommentUrlAttributeName = "CommentURL";
803
804 // Token: 0x04000AE9 RID: 2793
805 internal const string DiscardAttributeName = "Discard";
806
807 // Token: 0x04000AEA RID: 2794
808 internal const string DomainAttributeName = "Domain";
809
810 // Token: 0x04000AEB RID: 2795
811 internal const string ExpiresAttributeName = "Expires";
812
813 // Token: 0x04000AEC RID: 2796
814 internal const string MaxAgeAttributeName = "Max-Age";
815
816 // Token: 0x04000AED RID: 2797
817 internal const string PathAttributeName = "Path";
818
819 // Token: 0x04000AEE RID: 2798
820 internal const string PortAttributeName = "Port";
821
822 // Token: 0x04000AEF RID: 2799
823 internal const string SecureAttributeName = "Secure";
824
825 // Token: 0x04000AF0 RID: 2800
826 internal const string VersionAttributeName = "Version";
827
828 // Token: 0x04000AF1 RID: 2801
829 internal const string HttpOnlyAttributeName = "HttpOnly";
830
831 // Token: 0x04000AF2 RID: 2802
832 internal const string SeparatorLiteral = "; ";
833
834 // Token: 0x04000AF3 RID: 2803
835 internal const string EqualsLiteral = "=";
836
837 // Token: 0x04000AF4 RID: 2804
838 internal const string QuotesLiteral = "\"";
839
840 // Token: 0x04000AF5 RID: 2805
841 internal const string SpecialAttributeLiteral = "$";
842
843 // Token: 0x04000AF6 RID: 2806
844 internal static readonly char[] PortSplitDelimiters;
845
846 // Token: 0x04000AF7 RID: 2807
847 internal static readonly char[] Reserved2Name;
848
849 // Token: 0x04000AF8 RID: 2808
850 internal static readonly char[] Reserved2Value;
851
852 // Token: 0x04000AF9 RID: 2809
853 private static Comparer staticComparer;
854
855 // Token: 0x04000AFA RID: 2810
856 private string m_comment;
857
858 // Token: 0x04000AFB RID: 2811
859 private global::System.Uri m_commentUri;
860
861 // Token: 0x04000AFC RID: 2812
862 private CookieVariant m_cookieVariant;
863
864 // Token: 0x04000AFD RID: 2813
865 private bool m_discard;
866
867 // Token: 0x04000AFE RID: 2814
868 private string m_domain;
869
870 // Token: 0x04000AFF RID: 2815
871 private bool m_domain_implicit;
872
873 // Token: 0x04000B00 RID: 2816
874 private DateTime m_expires;
875
876 // Token: 0x04000B01 RID: 2817
877 private string m_name;
878
879 // Token: 0x04000B02 RID: 2818
880 private string m_path;
881
882 // Token: 0x04000B03 RID: 2819
883 private bool m_path_implicit;
884
885 // Token: 0x04000B04 RID: 2820
886 private string m_port;
887
888 // Token: 0x04000B05 RID: 2821
889 private bool m_port_implicit;
890
891 // Token: 0x04000B06 RID: 2822
892 private int[] m_port_list;
893
894 // Token: 0x04000B07 RID: 2823
895 private bool m_secure;
896
897 // Token: 0x04000B08 RID: 2824
899 private bool m_httpOnly;
900
901 // Token: 0x04000B09 RID: 2825
902 private DateTime m_timeStamp;
903
904 // Token: 0x04000B0A RID: 2826
905 private string m_value;
906
907 // Token: 0x04000B0B RID: 2827
908 private int m_version;
909
910 // Token: 0x04000B0C RID: 2828
911 private string m_domainKey;
912
913 // Token: 0x04000B0D RID: 2829
914 internal bool IsQuotedVersion;
915
916 // Token: 0x04000B0E RID: 2830
917 internal bool IsQuotedDomain;
918 }
919}
class f__AnonymousType0<< Count > j__TPar
string Comment
Definition Cookie.cs:56
Cookie(string name, string value, string path)
Definition Cookie.cs:39
bool VerifySetDefaults(CookieVariant variant, global::System.Uri uri, bool isLocalDomain, string localDomain, bool set_default, bool isThrow)
Definition Cookie.cs:348
static bool DomainCharsTest(string name)
Definition Cookie.cs:400
global::System.Uri CommentUri
Definition Cookie.cs:73
DateTime Expires
Definition Cookie.cs:195
Cookie(string name, string value)
Definition Cookie.cs:25
Cookie Clone()
Definition Cookie.cs:304
DateTime TimeStamp
Definition Cookie.cs:475
string DomainKey
Definition Cookie.cs:519
Cookie(string name, string value, string path, string domain)
Definition Cookie.cs:47
bool DomainImplicit
Definition Cookie.cs:158
static bool IsDomainEqualToHost(string domain, string host)
Definition Cookie.cs:334
bool InternalSetName(string value)
Definition Cookie.cs:228
static bool IsBlankString(string stringValue)
static DateTime Now
Definition DateTime.cs:530