Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ InternalSetName()

bool System.Net.Cookie.InternalSetName ( string value)
inlinepackage

Definition at line 331 of file Cookie.cs.

332 {
333 if (string.IsNullOrEmpty(value) || value[0] == '$' || value.IndexOfAny(ReservedToName) != -1 || value[0] == ' ' || value[value.Length - 1] == ' ')
334 {
335 m_name = string.Empty;
336 return false;
337 }
338 m_name = value;
339 return true;
340 }
string m_name
Definition Cookie.cs:34
static readonly char[] ReservedToName
Definition Cookie.cs:16

References System.Net.Cookie.m_name, System.Net.Cookie.ReservedToName, and System.value.

Referenced by System.Net.CookieParser.InternalSetNameMethod().