Template Method Design Pattern (C#)

preview_player
Показать описание
Template Method design pattern explained with examples in code. Substitute parts of your algorithm using inheritance.

#csharp #templatemethod #designpatterns
Рекомендации по теме
Комментарии
Автор

your use cases is very self-explanatory, easy to understand, thanks for sharing 🙏

herberthsu
Автор

Always good to learn something from you. Keep coding!

SelmanErhanekici
Автор

What do you advice to do if step1 step2 and step3 need information from database

gerikusku
Автор

Great pattern, a bit underrated, but I found myself using it more and more lately. Especially when I have more than 1 implementation on the same interface. By using template pattern, I enforce a certain high-level behavior and execution sequence, but let subclasses specify the details of every step. Good explanation though.

olegsuprun