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