4 references to TryParse
Microsoft.AspNetCore.Http.Extensions (1)
HeaderDictionaryTypeExtensions.cs (1)
147
private static EntityTagHeaderValue? ParseCacheEntityTagHeaderValue(string value) => EntityTagHeaderValue.
TryParse
(value, out var result) ? result : null;
Microsoft.AspNetCore.ResponseCaching (1)
ResponseCachingMiddleware.cs (1)
443
&& EntityTagHeaderValue.
TryParse
(cachedResponseHeaders.ETag.ToString(), out eTag)
Microsoft.Net.Http.Headers.Tests (2)
EntityTagHeaderValueTest.cs (2)
506
Assert.True(EntityTagHeaderValue.
TryParse
(input, out var result));
512
Assert.False(EntityTagHeaderValue.
TryParse
(input, out var result));