1
Vote

ViewEngine : what not only use one case ?

description

var themeViewEngineRazor = ServiceLocator.Current.GetInstance<ThemeViewEngineRazor>();
var themeViewEngine = ServiceLocator.Current.GetInstance<ThemeViewEngine>();
ViewEngines.Engines.Add(themeViewEngineRazor);
ViewEngines.Engines.Add(themeViewEngine);

why use themeViewEngineRazor also to the use of themeViewEngine.
Just only use the themeViewEngineRazor can also run.

and if only use the themeViewEngine will show such a error:'src\MvcCms.Web\Views\Shared\ControlsNav\TopNavControl.ascx(2): error CS0234: '
what not only use one case ?

comments