News

In a typical implementation of the Observer design pattern, you might want to have a Subject type and an Observer type. Here’s a code snippet that illustrates this. public abstract class Subject ...
Implementing the mediator design pattern in C#. But enough of the concepts—let’s get into some code. The participants in this design are the mediator, the concrete mediator, and one or more ...