24 references to Parser
System.Net.Http (24)
System\Net\Http\Headers\HeaderDescriptor.cs (2)
281
public string Separator =>
Parser
is { } parser ? parser.Separator : HttpHeaderParser.DefaultSeparator;
283
public byte[] SeparatorBytes =>
Parser
is { } parser ? parser.SeparatorBytes : HttpHeaderParser.DefaultSeparatorBytes;
System\Net\Http\Headers\HttpHeaders.cs (21)
381
Debug.Assert(descriptor.
Parser
!= null, "Can't add parsed value if there is no parser available.");
387
Debug.Assert(descriptor.
Parser
.SupportsMultipleValues, $"Header '{descriptor.Name}' doesn't support multiple values");
395
Debug.Assert(descriptor.
Parser
!= null, "Can't add parsed value if there is no parser available.");
429
Debug.Assert(descriptor.
Parser
!= null, "Can't add parsed value if there is no parser available.");
430
Debug.Assert(descriptor.
Parser
.SupportsMultipleValues,
441
IEqualityComparer? comparer = descriptor.
Parser
.Comparer;
507
Debug.Assert(descriptor.
Parser
!= null, "Can't add parsed value if there is no parser available.");
508
Debug.Assert(descriptor.
Parser
.SupportsMultipleValues,
520
IEqualityComparer? comparer = descriptor.
Parser
.Comparer;
615
if (descriptor.
Parser
== null)
800
if (descriptor.
Parser
== null)
849
Debug.Assert(descriptor.
Parser
!= null);
855
if (!info.CanAddParsedValue(descriptor.
Parser
))
866
if (descriptor.
Parser
.TryParseValue(value, info.ParsedAndInvalidValues, ref index, out object? parsedValue))
893
if (descriptor.
Parser
.TryParseValue(value, info.ParsedAndInvalidValues, ref index, out parsedValue))
1017
if (descriptor.
Parser
== null)
1028
if (!info.CanAddParsedValue(descriptor.
Parser
))
1034
object parsedValue = descriptor.
Parser
.ParseValue(value, info.ParsedAndInvalidValues, ref index);
1061
parsedValue = descriptor.
Parser
.ParseValue(value, info.ParsedAndInvalidValues, ref index);
1172
ReadStoreValues<object?>(values, info.ParsedAndInvalidValues, descriptor.
Parser
, ref currentIndex);
1208
ReadStoreValues<object?>(values!, info.ParsedAndInvalidValues, descriptor.
Parser
, ref currentIndex);
System\Net\Http\Headers\HttpHeaderValueCollection.cs (1)
185
if (_descriptor.
Parser
== GenericHeaderParser.TokenListParser)