Lecture overview -- Keyboard shortcut: 'u'  Previous page: Delegates in C# -- Keyboard shortcut: 'p'  Next page: Multivalued delegates -- 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 34 : 45

Delegates that contain instance methods

In the examples until now all delegates contained static methods

In case delegates contain instance methods, the receiver is part the delegate

Messenger.cs
A Messenger class and a Message delegate.
a.cs
A very simple class A with an instance method MethodA.
application.cs
An Application class which accesses an instance method in class A.
output
Output from Main of class Application.