Replace conditional with Polymorphism
摘要:
namespace RefactoringLib.Ploymorphism.Before{ public class Customer { } public class Employee : Customer { } public class NonEmployee : Customer { } public class OrderProcessor { public decimal ProcessOrder(Customer customer, IEnumerable products) { ... 阅读全文
posted @ 2013-12-06 14:49 backslash112 阅读(294) 评论(0) 推荐(0) 编辑