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

◆ CheckValidComment()

static void System.Net.Http.Headers.HeaderUtilities.CheckValidComment ( string value,
string parameterName )
inlinestaticpackage

Definition at line 117 of file HeaderUtilities.cs.

118 {
119 if (string.IsNullOrEmpty(value))
120 {
122 }
123 int length = 0;
124 if (HttpRuleParser.GetCommentLength(value, 0, out length) != 0 || length != value.Length)
125 {
127 }
128 }
static CultureInfo InvariantCulture
static string Format(string resourceFormat, object p1)
Definition SR.cs:118
static string net_http_headers_invalid_value
Definition SR.cs:26
static string net_http_argument_empty_string
Definition SR.cs:52
Definition SR.cs:7

References System.SR.Format(), System.Net.Http.HttpRuleParser.GetCommentLength(), System.Globalization.CultureInfo.InvariantCulture, System.length, System.SR.net_http_argument_empty_string, System.SR.net_http_headers_invalid_value, and System.value.

Referenced by System.Net.Http.Headers.ProductInfoHeaderValue.ProductInfoHeaderValue(), and System.Net.Http.Headers.ViaHeaderValue.ViaHeaderValue().