40 references to Parse
dotnet-svcutil-lib (2)
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\MessageEncoder.cs (1)
201MediaTypeHeaderValue parsedContentType = MediaTypeHeaderValue.Parse(contentType);
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\TextMessageEncoder.cs (1)
215MediaTypeHeaderValue parsedContentType = MediaTypeHeaderValue.Parse(contentType);
Microsoft.AspNetCore.Mvc.FunctionalTests (38)
BasicTests.cs (4)
45var expectedMediaType = MediaTypeHeaderValue.Parse("text/html; charset=utf-8"); 65var expectedMediaType = MediaTypeHeaderValue.Parse("text/html; charset=utf-8"); 88var expectedMediaType = MediaTypeHeaderValue.Parse("text/html; charset=utf-8"); 109var expectedMediaType = MediaTypeHeaderValue.Parse("text/html; charset=utf-8");
ContentNegotiationTest.cs (17)
42var expectedContentType = MediaTypeHeaderValue.Parse("application/custom;charset=utf-8"); 58var expectedContentType = MediaTypeHeaderValue.Parse("application/json;charset=utf-8"); 75var expectedContentType = MediaTypeHeaderValue.Parse("text/plain;charset=utf-8"); 91var expectedContentType = MediaTypeHeaderValue.Parse("application/json;charset=utf-8"); 108var expectedContentType = MediaTypeHeaderValue.Parse("application/json;charset=utf-8"); 124var expectedContentType = MediaTypeHeaderValue.Parse("application/json;charset=utf-8"); 147var expectedContentType = MediaTypeHeaderValue.Parse("application/xml;charset=utf-8"); 172var expectedContentType = MediaTypeHeaderValue.Parse("application/json;charset=utf-8"); 234var expectedContentType = MediaTypeHeaderValue.Parse( 251var expectedContentType = MediaTypeHeaderValue.Parse( 269var expectedContentType = MediaTypeHeaderValue.Parse( 286var expectedContentType = MediaTypeHeaderValue.Parse( 303var expectedContentType = MediaTypeHeaderValue.Parse( 321var expectedContentType = MediaTypeHeaderValue.Parse("application/json;charset=utf-8"); 339var expectedContentType = MediaTypeHeaderValue.Parse("application/xml;charset=utf-8"); 488var expectedMediaType = MediaTypeHeaderValue.Parse("application/vnd.example.contact+json; v=2; charset=utf-8"); 506var expectedMediaType = MediaTypeHeaderValue.Parse("application/vnd.example.contact+xml; v=2; charset=utf-8");
ErrorPageTests.cs (5)
60var expectedMediaType = MediaTypeHeaderValue.Parse("text/html; charset=utf-8"); 95var expectedMediaType = MediaTypeHeaderValue.Parse("text/html; charset=utf-8"); 116var expectedMediaType = MediaTypeHeaderValue.Parse("text/html; charset=utf-8"); 136var expectedMediaType = MediaTypeHeaderValue.Parse("text/html; charset=utf-8"); 154var expectedMediaType = MediaTypeHeaderValue.Parse("text/html; charset=utf-8");
HtmlGenerationTest.cs (5)
102var expectedMediaType = MediaTypeHeaderValue.Parse("text/html; charset=utf-8"); 131var expectedMediaType = MediaTypeHeaderValue.Parse("text/html; charset=utf-8"); 219var expectedMediaType = MediaTypeHeaderValue.Parse("text/html; charset=utf-8"); 259var expectedMediaType = MediaTypeHeaderValue.Parse("text/html; charset=utf-8"); 299var expectedMediaType = MediaTypeHeaderValue.Parse("text/html; charset=utf-8");
LinkGenerationTests.cs (1)
76var expectedMediaType = MediaTypeHeaderValue.Parse("text/html; charset=utf-8");
OutputFormatterTest.cs (2)
39var expectedContentType = MediaTypeHeaderValue.Parse("text/plain;charset=utf-8"); 57var expectedContentType = MediaTypeHeaderValue.Parse("application/json;charset=utf-8");
RazorPagesTest.cs (1)
46var expectedMediaType = MediaTypeHeaderValue.Parse("text/html; charset=utf-8");
TagHelpersTest.cs (3)
51var expectedMediaType = MediaTypeHeaderValue.Parse("text/html; charset=utf-8"); 88var expectedMediaType = MediaTypeHeaderValue.Parse("text/html; charset=utf-8"); 109var expectedMediaType = MediaTypeHeaderValue.Parse("text/html; charset=utf-8");