简单写的一个Factory Method, 利用反射简化工厂逻辑,在添加/删除产品后不需要更新工厂.

 

Factory Methodusing System;
Factory Method
using System.Collections.Generic;
Factory Method
Factory Method
namespace ConsoleApplication1

 

 

 

 

相关文章:

  • 2021-12-19
  • 2021-12-09
  • 2022-12-23
  • 2021-04-20
  • 2021-11-20
  • 2021-10-01
  • 2021-11-27
猜你喜欢
  • 2022-12-23
相关资源
相似解决方案