dinghao

记录成长点滴

 

2006年9月8日

小技巧(累积)-反射读取资源、ToString()不抛出异常

摘要: string langPreference = Session["LanguagePreference"] as string; 一、功能:通过反射取静态属性的值 目的:通过错误码,动态的从资源文件中找到各语种的资源。 public string GetErrInfo(int errCode) { string resourceKey; if(e... 阅读全文

posted @ 2006-09-08 14:57 思无邪 阅读(1098) 评论(1) 推荐(0) 编辑

导航