首页 > TAG信息列表 > innerState
c# 享元模式
// See https://aka.ms/new-console-template for more information /* 个人理解 工厂内先把对象准备好 然后根据参数去取对象 */ int val = 10; XiaoMiFactory miFactory = new(); ImplementationProduct product = miFactory.GetFlyweight("A"); if (product != null) {