Represents an observer to the Subject class. An observer implements this interface and then subscribes to the Subject with the interface. The observer will be called whenever a change in the number is made. More...
Public Member Functions | |
void | NumberChanged () |
This is called whenever the number in the ObserverSubject_NumberProducer object is changed. | |
Represents an observer to the Subject class. An observer implements this interface and then subscribes to the Subject with the interface. The observer will be called whenever a change in the number is made.
This interface is specific to the ObserverSubject_NumberProducer example, which is a typical requirement for a Subject that supports observers.
Definition at line 33 of file ObserverSubject_NumberProducer.cs.
void NumberChanged | ( | ) |
This is called whenever the number in the ObserverSubject_NumberProducer object is changed.
Implemented in ObserverForDecimal, ObserverForHexaDecimal, and ObserverForBinary.
Referenced by ObserverSubject_NumberProducer._NotifyNumberChanged().