50 writes to HtmlEncoder
Microsoft.AspNetCore.Mvc.Razor (2)
RazorPageBase.cs (2)
227HtmlEncoder = encoder; 253HtmlEncoder = scopeInfo.HtmlEncoder;
Microsoft.AspNetCore.Mvc.Razor.Test (48)
RazorPageTest.cs (14)
37v.HtmlEncoder = new HtmlTestEncoder(); 65v.HtmlEncoder = new HtmlTestEncoder(); 89v.HtmlEncoder = new HtmlTestEncoder(); 194v.HtmlEncoder = new HtmlTestEncoder(); 235v.HtmlEncoder = new HtmlTestEncoder(); 845v.HtmlEncoder = new HtmlTestEncoder(); 979page.HtmlEncoder = new HtmlTestEncoder(); 1021page.HtmlEncoder = new HtmlTestEncoder(); 1067page.HtmlEncoder = new HtmlTestEncoder(); 1110page.HtmlEncoder = new HtmlTestEncoder(); 1140page.HtmlEncoder = new HtmlTestEncoder(); 1206page.HtmlEncoder = new HtmlTestEncoder(); 1239page.HtmlEncoder = new HtmlTestEncoder(); 1441HtmlEncoder = new HtmlTestEncoder();
RazorViewTest.cs (34)
35v.HtmlEncoder = new HtmlTestEncoder(); 241v.HtmlEncoder = htmlEncoder; 248v.HtmlEncoder = htmlEncoder; 660v.HtmlEncoder = htmlEncoder; 674v.HtmlEncoder = htmlEncoder; 764v.HtmlEncoder = htmlEncoder; 773v.HtmlEncoder = htmlEncoder; 787v.HtmlEncoder = htmlEncoder; 831v.HtmlEncoder = htmlEncoder; 841v.HtmlEncoder = htmlEncoder; 853v.HtmlEncoder = htmlEncoder; 895v.HtmlEncoder = htmlEncoder; 905v.HtmlEncoder = htmlEncoder; 919v.HtmlEncoder = htmlEncoder; 958v.HtmlEncoder = htmlEncoder; 972v.HtmlEncoder = htmlEncoder; 987v.HtmlEncoder = htmlEncoder; 1071v.HtmlEncoder = htmlEncoder; 1081v.HtmlEncoder = htmlEncoder; 1092v.HtmlEncoder = htmlEncoder; 1137v.HtmlEncoder = htmlEncoder; 1151v.HtmlEncoder = htmlEncoder; 1164v.HtmlEncoder = htmlEncoder; 1308v.HtmlEncoder = htmlEncoder; 1318v.HtmlEncoder = htmlEncoder; 1331v.HtmlEncoder = htmlEncoder; 1377v.HtmlEncoder = htmlEncoder; 1390v.HtmlEncoder = htmlEncoder; 1433v.HtmlEncoder = htmlEncoder; 1445v.HtmlEncoder = htmlEncoder; 1513v.HtmlEncoder = new HtmlTestEncoder(); 1524v.HtmlEncoder = new HtmlTestEncoder(); 1810HtmlEncoder = new HtmlTestEncoder(); 1832HtmlEncoder = new HtmlTestEncoder();
12 references to HtmlEncoder
Microsoft.AspNetCore.Mvc.Razor (5)
RazorPageBase.cs (5)
208/// Starts a new writing scope and optionally overrides <see cref="HtmlEncoder"/> within that scope. 212/// non-<see cref="IHtmlContent"/> C# expressions. If <c>null</c>, does not change <see cref="HtmlEncoder"/>. 222TagHelperScopes.Push(new TagHelperScopeInfo(buffer, HtmlEncoder, viewContext.Writer)); 404var encoder = HtmlEncoder; 439var encoder = HtmlEncoder;
Microsoft.AspNetCore.Mvc.Razor.Test (7)
RazorPageActivatorTest.cs (3)
62Assert.Same(HtmlEncoder, instance.HtmlEncoder); 100Assert.Same(HtmlEncoder, instance.HtmlEncoder); 127Assert.Same(HtmlEncoder, instance.HtmlEncoder);
RazorPageTest.cs (4)
151Assert.Same(encoder, page.HtmlEncoder); 162var originalEncoder = page.HtmlEncoder; 169Assert.Same(originalEncoder, page.HtmlEncoder); 1451bufferedWriter.Buffer.WriteTo(stringWriter, HtmlEncoder);