随笔分类 -  设计模式

设计模式
摘要:观察者模式: 点击查看代码 // 采用观察者模式实现,降低系统间耦合度 public static class EventHandle { // 事件定义(被观察者) public static event Action<InventoryLocation, List<InventoryItem>> 阅读全文
posted @ 2024-10-14 19:33 doudouqie66 阅读(58) 评论(0) 推荐(0)