6 references to TryParse
Microsoft.AspNetCore.HeaderParsing (1)
Parsers\ContentDispositionHeaderValueParser.cs (1)
16
if (values.Count != 1 || !ContentDispositionHeaderValue.
TryParse
(values[0], out var parsedValue))
Microsoft.AspNetCore.Http (1)
Features\FormFeature.cs (1)
244
if (!ContentDispositionHeaderValue.
TryParse
(section.ContentDisposition, out var contentDisposition))
Microsoft.AspNetCore.Http.Extensions (1)
HeaderDictionaryTypeExtensions.cs (1)
137
private static ContentDispositionHeaderValue? ParseCacheContentDispositionHeaderValue(string value) => ContentDispositionHeaderValue.
TryParse
(value, out var result) ? result : null;
Microsoft.AspNetCore.WebUtilities (1)
MultipartSectionConverterExtensions.cs (1)
58
if (!ContentDispositionHeaderValue.
TryParse
(section.ContentDisposition, out var header))
Microsoft.Net.Http.Headers.Tests (2)
ContentDispositionHeaderValueTest.cs (2)
692
Assert.True(ContentDispositionHeaderValue.
TryParse
(input, out var result), input);
698
Assert.False(ContentDispositionHeaderValue.
TryParse
(input, out var result), input);