Tag: Template Method
All the articles with the tag "Template Method".
-
Template Method vs Strategy:C# 里两种“变中有不变”的算法骨架取舍
Published: at 12:00 AM模板方法用继承锁住算法结构,策略模式用组合换实现,两者都能做到“主流程不变、个别步骤可换”。文章用同一个数据处理管道把两种写法拆开比一遍,并给出选型清单和组合使用的示例。
All the articles with the tag "Template Method".
模板方法用继承锁住算法结构,策略模式用组合换实现,两者都能做到“主流程不变、个别步骤可换”。文章用同一个数据处理管道把两种写法拆开比一遍,并给出选型清单和组合使用的示例。