Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

In C#, isn't the observer pattern already implemented using Events?

After reading the Head First Design Patterns book and using a number of other design patterns, I'm trying to understand the Observer pattern. Isn't this already implemented using Events in the .NET Framework?

like image 398
Sean Chambers Avatar asked Aug 28 '08 11:08

Sean Chambers


1 Answers

Yes, it is. The observer pattern is also called the publish/subscribe pattern, which is exactly what events allow you to do.

like image 84
Sander Avatar answered Sep 29 '22 23:09

Sander