I following all the examples from Head First Design Patterns book, I'm stand on second chapter: Observer Pattern. The basic (dirty example (made hand)) included in the first section of that chapter is easy to implement in C# (from Java code example). Check it out:
- Subject.cs
- Observer.ss
- WeatherData.cs
- DisplayElement.cs
- CurrentConditionsDisplay.cs
- ForecastDisplay.cs
- HeatIndexDisplay.cs
- StatisticsDisplay.cs
It is working correctly. Now my question is about if there are built-int equivalents to Observable class and Observer interface from Java in C#. See this image (taken from Head First Design Patterns)
I tried various tutorials, guides, and other resources to make that implementation.
Regards, John Ortiz