阅读背景:

在应用程序中集中错误消息的最佳方法是什么?

来源:互联网 

All throughout an application wherever error messages (or other user messages) are used I typically hard-code a string. Obviosly this can be really bad (especially when you may have to come back and localize an app). What is the best approach to centralize these strings? A static class? Constants? An XML File? Or a combination (like creating a static class with constants that are used to read from an xml file).All throughout an application wherever error me




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: