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)
380
Debug.Assert(descriptor.
Parser
!= null, "Can't add parsed value if there is no parser available.");
386
Debug.Assert(descriptor.
Parser
.SupportsMultipleValues, $"Header '{descriptor.Name}' doesn't support multiple values");
394
Debug.Assert(descriptor.
Parser
!= null, "Can't add parsed value if there is no parser available.");
428
Debug.Assert(descriptor.
Parser
!= null, "Can't add parsed value if there is no parser available.");
429
Debug.Assert(descriptor.
Parser
.SupportsMultipleValues,
440
IEqualityComparer? comparer = descriptor.
Parser
.Comparer;
506
Debug.Assert(descriptor.
Parser
!= null, "Can't add parsed value if there is no parser available.");
507
Debug.Assert(descriptor.
Parser
.SupportsMultipleValues,
519
IEqualityComparer? comparer = descriptor.
Parser
.Comparer;
614
if (descriptor.
Parser
== null)
799
if (descriptor.
Parser
== null)
848
Debug.Assert(descriptor.
Parser
!= null);
854
if (!info.CanAddParsedValue(descriptor.
Parser
))
865
if (descriptor.
Parser
.TryParseValue(value, info.ParsedAndInvalidValues, ref index, out object? parsedValue))
892
if (descriptor.
Parser
.TryParseValue(value, info.ParsedAndInvalidValues, ref index, out parsedValue))
1016
if (descriptor.
Parser
== null)
1027
if (!info.CanAddParsedValue(descriptor.
Parser
))
1033
object parsedValue = descriptor.
Parser
.ParseValue(value, info.ParsedAndInvalidValues, ref index);
1060
parsedValue = descriptor.
Parser
.ParseValue(value, info.ParsedAndInvalidValues, ref index);
1171
ReadStoreValues<object?>(values, info.ParsedAndInvalidValues, descriptor.
Parser
, ref currentIndex);
1207
ReadStoreValues<object?>(values!, info.ParsedAndInvalidValues, descriptor.
Parser
, ref currentIndex);
System\Net\Http\Headers\HttpHeaderValueCollection.cs (1)
185
if (_descriptor.
Parser
== GenericHeaderParser.TokenListParser)