patterns/observer/template-with-events/observer-only.cs - Template of the Observer class. | Lecture 5 - slide 44 : 45 Program 2 |
using System.Collections; namespace Templates.Observer { public class Observer { public Observer (){ // ... } public void Update(SubjectState ss){ // if (the state ss is interesting){ // react on state change // } } } }