|
| 1 | +// A hand-written test file that mimics the output of compiling a `.cshtml` file |
| 2 | +#pragma checksum "Index.cshtml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "c4ae76542f1958092cebd8f57beef899d20fc548" |
| 3 | +// <auto-generated/> |
| 4 | +#pragma warning disable 1591 |
| 5 | +[assembly: global::Microsoft.AspNetCore.Razor.Hosting.RazorCompiledItemAttribute(typeof(dotnetweb.Pages.Pages_Index), @"mvc.1.0.razor-page", @"Index.cshtml")] |
| 6 | +namespace dotnetweb.Pages |
| 7 | +{ |
| 8 | + #line hidden |
| 9 | + using System; |
| 10 | + using System.Collections.Generic; |
| 11 | + using System.Linq; |
| 12 | + using System.Threading.Tasks; |
| 13 | + using Microsoft.AspNetCore.Mvc; |
| 14 | + using Microsoft.AspNetCore.Mvc.Rendering; |
| 15 | + using Microsoft.AspNetCore.Mvc.ViewFeatures; |
| 16 | +#nullable restore |
| 17 | +using dotnetweb; |
| 18 | + |
| 19 | +#line default |
| 20 | +#line hidden |
| 21 | +#nullable disable |
| 22 | + [global::Microsoft.AspNetCore.Razor.Hosting.RazorSourceChecksumAttribute(@"SHA1", @"c4ae76542f1958092cebd8f57beef899d20fc548", @"Index.cshtml")] |
| 23 | + // [global::Microsoft.AspNetCore.Razor.Hosting.RazorSourceChecksumAttribute(@"SHA1", @"c13da96c2597d5ddb7d415fb4892c644a268f50b", @"/Pages/_ViewImports.cshtml")] |
| 24 | + public class Pages_Index : global::Microsoft.AspNetCore.Mvc.RazorPages.Page |
| 25 | + { |
| 26 | + #pragma warning disable 1998 |
| 27 | + public async override global::System.Threading.Tasks.Task ExecuteAsync() |
| 28 | + { |
| 29 | +#nullable restore |
| 30 | +#line 3 "Index.cshtml" |
| 31 | + |
| 32 | + ViewData["Title"] = "ASP.NET Core"; |
| 33 | + var message = Request.Query["m"]; |
| 34 | + |
| 35 | +#line default |
| 36 | +#line hidden |
| 37 | +#nullable disable |
| 38 | + WriteLiteral("<div class=\"cli\">\n <div class=\"cli-example\"> \n"); |
| 39 | +#nullable restore |
| 40 | +#line 14 "Index.cshtml" |
| 41 | +Write(Html.Raw(message)); // BAD |
| 42 | + |
| 43 | +#line default |
| 44 | +#line hidden |
| 45 | +#nullable disable |
| 46 | + WriteLiteral("\n </div>\n</div>\n\n\n"); |
| 47 | + } |
| 48 | + #pragma warning restore 1998 |
| 49 | + [global::Microsoft.AspNetCore.Mvc.Razor.Internal.RazorInjectAttribute] |
| 50 | + public global::Microsoft.AspNetCore.Mvc.ViewFeatures.IModelExpressionProvider ModelExpressionProvider { get; private set; } |
| 51 | + [global::Microsoft.AspNetCore.Mvc.Razor.Internal.RazorInjectAttribute] |
| 52 | + public global::Microsoft.AspNetCore.Mvc.IUrlHelper Url { get; private set; } |
| 53 | + [global::Microsoft.AspNetCore.Mvc.Razor.Internal.RazorInjectAttribute] |
| 54 | + public global::Microsoft.AspNetCore.Mvc.IViewComponentHelper Component { get; private set; } |
| 55 | + [global::Microsoft.AspNetCore.Mvc.Razor.Internal.RazorInjectAttribute] |
| 56 | + public global::Microsoft.AspNetCore.Mvc.Rendering.IJsonHelper Json { get; private set; } |
| 57 | + [global::Microsoft.AspNetCore.Mvc.Razor.Internal.RazorInjectAttribute] |
| 58 | + public global::Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper<string> Html { get; private set; } |
| 59 | + public global::Microsoft.AspNetCore.Mvc.ViewFeatures.ViewDataDictionary<string> ViewData => (global::Microsoft.AspNetCore.Mvc.ViewFeatures.ViewDataDictionary<string>)PageContext?.ViewData; |
| 60 | + } |
| 61 | +} |
| 62 | +#pragma warning restore 1591 |
0 commit comments