Lecture overview -- Keyboard shortcut: 'u'  Previous page: An Observer Example -- Keyboard shortcut: 'p'  Next page: Observer Example with Delegates and Events -- Keyboard shortcut: 'n'  Lecture notes - all slides together  Annotated slide -- Keyboard shortcut: 't'  Textbook -- Keyboard shortcut: 'v'  Alphabetic index  Help page about these notes  Course home    Data Access and Operations - slide 44 : 45

Observer with Delegates and Events

It is possible to implement the observer design pattern with events and delegates

subject-only.cs
Template of the Subject class.
observer-only.cs
Template of the Observer class.
client.cs
Application of the Subject and Observer classes.