コード例 #1
0
        public RazorBaseHostContainer()
        {
            UseAppDomain       = true;
            GeneratedNamespace = "__RazorHost";

            ReferencedAssemblies = new List <string>();
            ReferencedNamespaces = new List <string>();

            Configuration = new RazorEngineConfiguration();
        }
コード例 #2
0
        public RazorEngine()
        {
            Configuration = new RazorEngineConfiguration();
            AssemblyCache = new Dictionary <string, Assembly>();
            ErrorMessage  = string.Empty;

            ReferencedNamespaces = new List <string>();
            ReferencedNamespaces.Add("System");
            ReferencedNamespaces.Add("System.Text");
            ReferencedNamespaces.Add("System.Collections.Generic");
            ReferencedNamespaces.Add("System.Linq");
            ReferencedNamespaces.Add("System.IO");
        }