1 write to SupportedEncodings
Microsoft.AspNetCore.Mvc.Core (1)
Formatters\TextOutputFormatter.cs (1)
25SupportedEncodings = new List<Encoding>();
39 references to SupportedEncodings
BasicWebSite (4)
Formatters\CustomFormatter.cs (1)
18SupportedEncodings.Add(Encoding.GetEncoding("utf-8"));
Formatters\PlainTextFormatter.cs (1)
15SupportedEncodings.Add(Encoding.GetEncoding("utf-8"));
Formatters\VCardFormatter_V3.cs (1)
20SupportedEncodings.Add(Encoding.UTF8);
Formatters\VCardFormatter_V4.cs (1)
21SupportedEncodings.Add(Encoding.UTF8);
Microsoft.AspNetCore.Mvc.Core (13)
Formatters\StringOutputFormatter.cs (2)
20SupportedEncodings.Add(Encoding.UTF8); 21SupportedEncodings.Add(Encoding.Unicode);
Formatters\SystemTextJsonOutputFormatter.cs (2)
28SupportedEncodings.Add(Encoding.UTF8); 29SupportedEncodings.Add(Encoding.Unicode);
Formatters\TextOutputFormatter.cs (9)
67if (SupportedEncodings.Count == 0) 70nameof(SupportedEncodings)); 87for (var i = 0; i < SupportedEncodings.Count; i++) 89var supportedEncoding = SupportedEncodings[i]; 93return SupportedEncodings[i]; 99return SupportedEncodings[0]; 111if (SupportedEncodings.Count > 0) 202for (var j = 0; j < SupportedEncodings.Count; j++) 204var encoding = SupportedEncodings[j];
Microsoft.AspNetCore.Mvc.Core.Test (13)
Formatters\JsonOutputFormatterTestBase.cs (2)
203.SupportedEncodings 209formatter.SupportedEncodings.Add(encoding);
Formatters\TextOutputFormatterTests.cs (5)
50formatter.SupportedEncodings.Add(Encoding.GetEncoding(supportedEncoding)); 111formatter.SupportedEncodings.Add(Encoding.UTF8); 142formatter.SupportedEncodings.Add(Encoding.UTF8); 168formatter.SupportedEncodings.Add(Encoding.Unicode); 185formatter.SupportedEncodings.Clear();
Infrastructure\DefaultOutputFormatterSelectorTest.cs (3)
399SupportedEncodings.Add(Encoding.UTF8); 415SupportedEncodings.Add(Encoding.UTF8); 430SupportedEncodings.Add(Encoding.UTF8);
Infrastructure\ObjectResultExecutorTest.cs (3)
506SupportedEncodings.Add(Encoding.UTF8); 526SupportedEncodings.Add(Encoding.UTF8); 541SupportedEncodings.Add(Encoding.UTF8);
Microsoft.AspNetCore.Mvc.Formatters.Xml (4)
XmlDataContractSerializerOutputFormatter.cs (2)
68SupportedEncodings.Add(Encoding.UTF8); 69SupportedEncodings.Add(Encoding.Unicode);
XmlSerializerOutputFormatter.cs (2)
67SupportedEncodings.Add(Encoding.UTF8); 68SupportedEncodings.Add(Encoding.Unicode);
Microsoft.AspNetCore.Mvc.NewtonsoftJson (2)
NewtonsoftJsonOutputFormatter.cs (2)
69SupportedEncodings.Add(Encoding.UTF8); 70SupportedEncodings.Add(Encoding.Unicode);
Microsoft.AspNetCore.Mvc.NewtonsoftJson.Test (2)
src\Mvc\Mvc.Core\test\Formatters\JsonOutputFormatterTestBase.cs (2)
203.SupportedEncodings 209formatter.SupportedEncodings.Add(encoding);
Microsoft.AspNetCore.OpenApi.Tests (1)
Services\OpenApiDocumentServiceTestsBase.cs (1)
103SupportedEncodings.Add(Encoding.UTF8);