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);
                }













  • 相关阅读:
    django第10天(聚合查询,常用字段)
    django第9天(多表操作)
    django第8天(在测试文件中运行django项目|单表操作)
    django第七天(模板的复用性,include标签和母版)
    django第六天(模板相关,过滤器和标记)
    SparkCore2
    SparkCore
    SQL
    Spark基础
    使用Observer实现HBase到Elasticsearch的数据同步
  • 原文地址:https://www.cnblogs.com/zyip/p/2689083.html
Copyright © 2011-2022 走看看