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