摘要:
在项目中可能根据不同的用户,不同的区域加载不同的界面风格,琢磨了一下终于搞定了。代码如下:public static void OnloadTemplate(string tempName) { RazorViewEngine engine = ViewEngines.Engines.Where(e => e is RazorViewEngine).Single() as RazorViewEngine; engine.ViewLocationFormats = engine.PartialViewLocationFormats = engine.MasterLocationFormat 阅读全文
posted @ 2013-03-22 14:41
Haydy
阅读(377)
评论(0)
推荐(0)
摘要:
注意:所有提及类均在:System.Resources命名空间内。来看这三个类的常用成员:interface IResourceWriter: IDisposablevoid AddResource(string name, object/string/byte[]);//添加资源数据void Generate();//更新缓冲区(Flush)void Close();//调用Disposeinterface IResourceReader: IDisposable, IEnumerableIDictionaryEnumerator GetEnumerator();//获取字典迭代器(用来枚举 阅读全文
posted @ 2013-03-22 14:05
Haydy
阅读(2290)
评论(0)
推荐(0)
浙公网安备 33010602011771号