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

◆ ParseValue()

object System.Net.Http.Headers.HttpHeaderParser.ParseValue ( string value,
object storeValue,
ref int index )
inlineinherited

Definition at line 36 of file HttpHeaderParser.cs.

37 {
38 if (!TryParseValue(value, storeValue, ref index, out var parsedValue))
39 {
40 throw new FormatException(System.SR.Format(CultureInfo.InvariantCulture, System.SR.net_http_headers_invalid_value, (value == null) ? "<null>" : value.Substring(index)));
41 }
42 return parsedValue;
43 }
static CultureInfo InvariantCulture
bool TryParseValue(string value, object storeValue, ref int index, [NotNullWhen(true)] out object parsedValue)
static string Format(string resourceFormat, object p1)
Definition SR.cs:118
static string net_http_headers_invalid_value
Definition SR.cs:26
Definition SR.cs:7

References System.SR.Format(), System.index, System.Globalization.CultureInfo.InvariantCulture, System.SR.net_http_headers_invalid_value, System.Net.Http.Headers.HttpHeaderParser.TryParseValue(), and System.value.

Referenced by System.Net.Http.Headers.HttpHeaders.ParseAndAddValue().