Base:
34 references to ToString
Microsoft.AspNetCore.Components (1)
src\Http\Routing\src\Patterns\RoutePatternMatcher.cs (1)
273values[parameter.Name] = requestSegment.ToString();
Microsoft.AspNetCore.Http (1)
Features\FormFeature.cs (1)
389return boundary.ToString();
Microsoft.AspNetCore.Http.Abstractions (1)
HostString.cs (1)
97return host.ToString();
Microsoft.AspNetCore.Http.Extensions (1)
HttpRequestMultipartExtensions.cs (1)
26return HeaderUtilities.RemoveQuotes(mediaType.Boundary).ToString();
Microsoft.AspNetCore.Localization (1)
RequestLocalizationMiddleware.cs (1)
170culture = CultureInfo.GetCultureInfo(cultureName.ToString());
Microsoft.AspNetCore.Mvc.Core (2)
Formatters\MediaTypeSegmentWithQuality.cs (1)
38return MediaType.ToString();
Formatters\StreamOutputFormatter.cs (1)
37response.ContentType = context.ContentType.ToString();
Microsoft.AspNetCore.Mvc.Core.Test (3)
Formatters\JsonOutputFormatterTestBase.cs (1)
168httpContext.Request.Headers.AcceptCharset = contentType.Charset.ToString();
Formatters\OutputFormatterTests.cs (2)
29Assert.Equal(formatter.SupportedMediaTypes[0].ToString(), context.ContentType.ToString()); 101Assert.Equal(requestedContentType, context.ContentType.ToString());
Microsoft.AspNetCore.Mvc.Core.TestCommon (4)
MediaTypeAssert.cs (4)
35throw EqualException.ForMismatchedValues(left.ToString(), right.ToString()); 42throw EqualException.ForMismatchedValues(left.ToString(), right.ToString());
Microsoft.AspNetCore.Mvc.Formatters.Xml.Test (2)
XmlDataContractSerializerOutputFormatterTest.cs (1)
804request.Headers["Accept-Charset"] = MediaTypeHeaderValue.Parse(contentType).Charset.ToString();
XmlSerializerOutputFormatterTest.cs (1)
586request.Headers["Accept-Charset"] = MediaTypeHeaderValue.Parse(contentType).Charset.ToString();
Microsoft.AspNetCore.Mvc.NewtonsoftJson.Test (1)
src\Mvc\Mvc.Core\test\Formatters\JsonOutputFormatterTestBase.cs (1)
168httpContext.Request.Headers.AcceptCharset = contentType.Charset.ToString();
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (2)
CookieTempDataProviderTest.cs (2)
91Assert.Equal(CookieTempDataProvider.CookieName, setCookieHeader.Name.ToString()); 92Assert.Equal(string.Empty, setCookieHeader.Value.ToString());
Microsoft.AspNetCore.Routing (1)
Patterns\RoutePatternMatcher.cs (1)
273values[parameter.Name] = requestSegment.ToString();
Microsoft.AspNetCore.WebUtilities (4)
FileMultipartSection.cs (2)
40Name = HeaderUtilities.RemoveQuotes(_contentDispositionHeader.Name).ToString(); 44_contentDispositionHeader.FileName).ToString();
FormMultipartSection.cs (1)
39Name = HeaderUtilities.RemoveQuotes(_contentDispositionHeader.Name).ToString();
MultipartReader.cs (1)
58boundary = HeaderUtilities.RemoveQuotes(new StringSegment(boundary)).ToString();
Microsoft.Net.Http.Headers (8)
ContentDispositionHeaderValue.cs (4)
493result = result.ToString().Replace(@"\", @"\\").Replace(@"""", @"\"""); 599var encoding = Encoding.GetEncoding(parts[1].ToString()); 600var bytes = Convert.FromBase64String(parts[3].ToString()); 717var encoding = Encoding.GetEncoding(parts[0].ToString());
EntityTagHeaderValue.cs (2)
92return "W/" + _tag.ToString(); 94return _tag.ToString();
NameValueHeaderValue.cs (1)
275return _name.ToString();
StringWithQualityHeaderValue.cs (1)
76return _value.ToString();
Microsoft.Net.Http.Headers.Tests (2)
EntityTagHeaderValueTest.cs (2)
35Assert.Equal("\"tag\"", etag.Tag.ToString()); 43Assert.Equal("\"e tag\"", etag.Tag.ToString());