13 references to CopyAsReadOnly
Microsoft.AspNetCore.Mvc.Core (6)
Formatters\MediaTypeHeaderValues.cs (6)
11= MediaTypeHeaderValue.Parse("application/json").CopyAsReadOnly(); 14= MediaTypeHeaderValue.Parse("text/json").CopyAsReadOnly(); 17= MediaTypeHeaderValue.Parse("application/*+json").CopyAsReadOnly(); 20= MediaTypeHeaderValue.Parse("application/xml").CopyAsReadOnly(); 23= MediaTypeHeaderValue.Parse("text/xml").CopyAsReadOnly(); 26= MediaTypeHeaderValue.Parse("application/*+xml").CopyAsReadOnly();
Microsoft.AspNetCore.Mvc.NewtonsoftJson (4)
MediaTypeHeaderValues.cs (4)
11= MediaTypeHeaderValue.Parse("application/json").CopyAsReadOnly(); 14= MediaTypeHeaderValue.Parse("text/json").CopyAsReadOnly(); 17= MediaTypeHeaderValue.Parse("application/json-patch+json").CopyAsReadOnly(); 20= MediaTypeHeaderValue.Parse("application/*+json").CopyAsReadOnly();
Microsoft.Net.Http.Headers.Tests (3)
MediaTypeHeaderValueTest.cs (3)
141var mediaType1 = mediaType0.CopyAsReadOnly(); 174var mediaType1 = mediaType0.CopyAsReadOnly(); 202var mediaType1 = mediaType0.CopyAsReadOnly();