摘要: 1. 代码中时常出现条件语句分支,这样的代码很不利于扩展。例如下面代码片段: if (context.Request["action"] != null) { string action = context.Request["action"]; switch (action) { case "a": ActionA(); break; case "b": ... 阅读全文
posted @ 2011-04-18 10:07 安布雷拉 阅读(2986) 评论(42) 推荐(3) 编辑