Bastien Vandamme
Bastien Vandamme

Reputation: 18465

Could we say that each class that define an event in C# is a subject of an observer pattern?

I would like to understand. In C# could we say that each class that define an event is a subject of an (hypothetical) observer pattern?

Upvotes: 0

Views: 67

Answers (1)

mat
mat

Reputation: 1717

Yes, you can. Though there is also an IObserver Interface in the .NET Framework, events are the best way to do it. You can read Microsoft's desctiption on the matter.

Upvotes: 1

Related Questions