摘要: class BridgePattern { public static void Main() { IReport reportMonthly = new MonthlyReport(); IReport reportYearly = new YearlyReport(); ReportChart reportChart = new ColumnReportChart(); reportChart.SetReport(reportMonthly); ... 阅读全文
posted @ 2014-04-12 15:03 cnbwang 阅读(190) 评论(0) 推荐(0) 编辑
摘要: /// /// using this pattern, the concrete element such as Family or Team is supposed to be stable, /// and the count of the total elements should be stable as well. /// Concrete visitor such as CompeteNotice or FeeCharge, may be extendable. For instance, we /// can add a GroupPrinca... 阅读全文
posted @ 2014-04-12 09:45 cnbwang 阅读(248) 评论(0) 推荐(0) 编辑