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













  • 相关阅读:
    mysql 设置密码
    linux 下如何抓取HTTP流量包(httpry)
    m2a-vm超频的方法
    生产服务器环境最小化安装后 Centos 6.5优化配置备忘
    CentOS关闭休眠和屏保模式
    微信公众平台开发教程第2篇-----微信开发者接入
    微信公众平台开发教程第1篇-新手解惑
    android 文件读取(assets、raw)
    员工培训的七大误区和三个内核价值
    从业务专家进阶到管理者
  • 原文地址:https://www.cnblogs.com/zyip/p/2689083.html
Copyright © 2011-2022 走看看