public RazorBaseHostContainer() { UseAppDomain = true; GeneratedNamespace = "__RazorHost"; ReferencedAssemblies = new List <string>(); ReferencedNamespaces = new List <string>(); Configuration = new RazorEngineConfiguration(); }
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"); }