zoukankan      html  css  js  c++  java
  • mvc4

    C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\fc9714c8\c7904cf1
    App_Web_vpfydiqo.dll

    System.Web.WebPages.Razor.RazorBuildProvider    CodeCompilerType



    C:\mvc3\mvc3-rtm-sources\mvc3-rtm-sources\mvc3\src\SystemWebMvc\Mvc\ViewResultBase.cs
                TextWriter writer = context.HttpContext.Response.Output;
                ViewContext viewContext = new ViewContext(context, View, ViewData, TempData, writer);
                View.Render(viewContext, writer);



    C:\mvc3\mvc3-rtm-sources\mvc3-rtm-sources\webpages\src\System.Web.WebPages\StartPage.cs
      public override void ExecutePageHierarchy() {
                // Push the current pagestart on the stack.
                TemplateStack.Push(Context, this);
                try {
                    // Execute the developer-written code of the InitPage
                    Execute();

                    // If the child page wasn't explicitly run by the developer of the InitPage, then run it now.
                    // The child page is either the next InitPage, or the final WebPage.
                    if (!RunPageCalled) {
                        RunPage();
                    }



    C:\mvc3\mvc3-rtm-sources\mvc3-rtm-sources\webpages\src\System.Web.WebPages\WebPageBase.cs
     public void PopContext() {
                string renderedContent = _tempWriter.ToString();
                OutputStack.Pop();



    C:\mvc3\mvc3-rtm-sources\mvc3-rtm-sources\mvc3\src\SystemWebMvc\Mvc\Html\PartialExtensions.cs
    public static MvcHtmlString Partial(this HtmlHelper htmlHelper, string partialViewName, object model, ViewDataDictionary viewData) {
                using (StringWriter writer = new StringWriter(CultureInfo.CurrentCulture)) {
                    htmlHelper.RenderPartialInternal(partialViewName, viewData, model, writer, ViewEngines.Engines);
                    return MvcHtmlString.Create(writer.ToString());
                }
            }




    -----------------------
    C:\mvc3\mvc3-rtm-sources\mvc3-rtm-sources\webpages\src\System.Web.WebPages.Razor\RazorBuildProvider.cs
    private void EnsureGeneratedCode() {
                if (_generatedCode == null) {
                    RazorTemplateEngine engine = new RazorTemplateEngine(Host);
                    GeneratorResults results = null;
                    using (TextReader reader = InternalOpenReader()) {
                        results = engine.GenerateCode(reader, className: null, rootNamespace: null, sourceFileName: Host.PhysicalPath);
                    }
                    if (!results.Success) {
                        throw CreateExceptionFromParserError(results.ParserErrors.Last(), VirtualPath);
                    }
                    _generatedCode = results.GeneratedCode;

                    // Run the code gen complete event
                    OnCodeGenerationCompleted(_generatedCode);
                }













  • 相关阅读:
    着迷英语900句总结
    SQL Server 常见数据类型
    SQL Server视频总结
    第三次SLA文档学习
    Rosetton Stone Summary
    【周总结】2018-10-19—2018-11-25
    学生信息管理系统总结
    VB中 EOF 和 BOF 的区别
    VB中 On error 的用法
    VB中 . 与 ! 的区别
  • 原文地址:https://www.cnblogs.com/zyip/p/2689083.html
Copyright © 2011-2022 走看看