Definition at line 376 of file Cookie.cs.
377 {
378 string host = uri.Host;
381 bool flag = true;
383 {
385 {
387 }
389 {
390 variant = CookieVariant.Rfc2109;
391 }
393 }
395 {
397 {
399 }
400 return false;
401 }
403 {
405 {
407 }
408 return false;
409 }
411 {
413 {
415 }
416 return false;
417 }
419 {
421 {
423 }
424 return false;
425 }
427 {
429 }
430 else
431 {
433 {
436 {
438 {
440 }
441 return false;
442 }
444 {
446 }
447 int num =
host.IndexOf(
'.');
449 {
450 flag = true;
451 }
452 else if (
text.IndexOf(
'.', 1,
text.Length - 2) == -1)
453 {
455 {
456 flag = false;
457 }
458 }
459 else if (
variant == CookieVariant.Plain)
460 {
462 {
463 flag = false;
464 }
465 }
467 {
468 flag = false;
469 }
470 if (flag)
471 {
473 }
474 }
476 {
477 flag = false;
478 }
479 if (!flag)
480 {
482 {
484 }
485 return false;
486 }
487 }
489 {
491 {
492 case CookieVariant.Plain:
493 {
496 {
498 }
499 else
500 {
502 }
503 break;
504 }
505 case CookieVariant.Rfc2109:
507 break;
508 default:
510 break;
511 }
512 }
514 {
516 }
518 {
519 flag = false;
522 {
524 {
525 flag = true;
526 break;
527 }
528 }
529 if (!flag)
530 {
532 {
534 }
535 return false;
536 }
537 }
538 return true;
539 }
static bool DomainCharsTest(string name)
static readonly char[] ReservedToValue
CookieVariant m_cookieVariant
static bool IsDomainEqualToHost(string domain, string host)
static readonly char[] ReservedToName
static string net_cookie_attribute
static string Format(string resourceFormat, object p1)
References System.Uri.AbsolutePath, System.Net.Cookie.Comment, System.Runtime.Serialization.Dictionary, System.Net.Cookie.DomainCharsTest(), System.Net.Equals, System.SR.Format(), System.Uri.Host, System.Net.Cookie.IsDomainEqualToHost(), System.length, System.Net.Cookie.m_cookieVariant, System.Net.Cookie.m_domain, System.Net.Cookie.m_domain_implicit, System.Net.Cookie.m_domainKey, System.Net.Cookie.m_name, System.Net.Cookie.m_path, System.Net.Cookie.m_path_implicit, System.Net.Cookie.m_port, System.Net.Cookie.m_port_implicit, System.Net.Cookie.m_port_list, System.Net.Cookie.m_value, System.SR.net_cookie_attribute, System.Net.Cookie.Path, System.Uri.Port, System.Net.Cookie.ReservedToName, System.Net.Cookie.ReservedToValue, and System.text.