public static GetPageType ( string virtualPath ) : |
||
virtualPath | string | |
리턴 |
private Type GetViewStartType() { var vp = this.VirtualPath; while (vp.Contains("/Views/")) { vp = vp.Substring(0, vp.LastIndexOf("/")); var vs = CompiledRazorViewEngine.GetPageType(vp + "/_ViewStart.cshtml"); if (vs != null) { return(vs); } } return(null); }
private dynamic GetLayout() { if (string.IsNullOrEmpty(Layout)) { return(null); } var t = CompiledRazorViewEngine.GetPageType(Layout); if (t != null) { return(t.GetConstructor(new Type[] { }).Invoke(new object[] { })); } else { return(null); } }