2004年4月22日

InnerException

摘要: 在asp.net中,我在一个应用中 throw new Exception(“Text“);然后在Global.asax中的Application_Error中捕获该异常. protected void Application_Error(Object sender, EventArgs e) { Exception ee = Server.GetLastError(); if (ee... 阅读全文

posted @ 2004-04-22 20:08 一个春天 阅读(5436) 评论(5) 推荐(1)

.NET的命名规则

摘要: 仔细研究Microsoft的“Design Guidelines for Class Library Developers”,总体感觉是.net中更提倡代码向英语自然语言靠近。据几个例子:1.使用现在时态和过去时态来命名有“前”、“后”概念的事件。(不要使用BeforeXxx\AfterXxx).如,一个可以取消的关闭事件可以表示为Closing 和Closed event.2.变量的命名不再推荐... 阅读全文

posted @ 2004-04-22 08:35 一个春天 阅读(1828) 评论(2) 推荐(0)

导航