lundi 22 avril 2019

design pattern like electricity switch?

I'm coding in c# and currently implementing an "electricity switch" like component.

General idea is there are a bunch of classes implementing a ISwitch interface, and when one is false it basically triggers an Off() action and when all are true then On().

Idea is pretty clear and I'm pretty sure there is a design pattern for such behavior / functionality, would appreciate a reference to documentation so I can educate myself and look at best practices,

cheers

Aucun commentaire:

Enregistrer un commentaire