4 references to TryParse
Microsoft.AspNetCore.HeaderParsing (1)
Parsers\RangeConditionHeaderValueParser.cs (1)
16
if (values.Count != 1 || !RangeConditionHeaderValue.
TryParse
(values[0], out var parsedValue))
Microsoft.AspNetCore.Http.Extensions (1)
HeaderDictionaryTypeExtensions.cs (1)
143
private static RangeConditionHeaderValue? ParseCacheRangeConditionHeaderValue(string value) => RangeConditionHeaderValue.
TryParse
(value, out var result) ? result : null;
Microsoft.Net.Http.Headers.Tests (2)
RangeConditionHeaderValueTest.cs (2)
149
Assert.False(RangeConditionHeaderValue.
TryParse
(input, out var result));
163
Assert.True(RangeConditionHeaderValue.
TryParse
(input, out var result));