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













posted @ 2012-09-17 17:33  zyip  阅读(714)  评论(0编辑  收藏  举报