48 {
51 bool flag = false;
52 bool flag2 = false;
53 bool flag3 = false;
54 do
55 {
56 bool flag4 = cookie == null || string.IsNullOrEmpty(cookie.Name);
58 if (flag4 && (cookieToken ==
System.
Net.CookieToken.NameValuePair || cookieToken ==
System.
Net.CookieToken.Attribute))
59 {
60 if (cookie == null)
61 {
63 }
66 continue;
67 }
68 switch (cookieToken)
69 {
70 case System.
Net.CookieToken.NameValuePair:
72 {
74 if (!flag)
75 {
76 flag = true;
79 }
80 break;
82 if (!flag2)
83 {
84 flag2 = true;
86 }
87 break;
89 if (!flag3)
90 {
91 flag3 = true;
92 try
93 {
95 }
96 catch (CookieException)
97 {
99 }
100 }
101 break;
103 {
105 if (
int.TryParse(
_tokenizer.Value, out var result))
106 {
107 _savedCookie.Version = result;
108 }
109 return cookie;
110 }
115 return cookie;
116 }
117 break;
120 {
121 flag3 = true;
122 cookie.Port = string.Empty;
123 }
124 break;
125 }
126 }
128 return cookie;
129 }
System.Net.CookieTokenizer _tokenizer
static FieldInfo IsQuotedDomainField
static string CheckQuoted(string value)
static Func< Cookie, string, bool > InternalSetNameMethod