Inheritance: IViewEngine
Exemplo n.º 1
0
        public RazorViewTemplate(RazorViewEngine owner, Type t, string viewfile)
        {
            // Check the view derives from ViewBase
            if (!typeof(View).IsAssignableFrom(t))
            {
                throw new Exception(string.Format("View does not inherit from {0}", typeof(View).FullName));
            }

            this.Owner = owner;
            this.ViewType = t;
            this.ViewFile = viewfile;
        }