Skip to content

service

Invoking a Delegate

The important things to know about invoking a delegate are the following: You can invoke a delegate in either of two ways. First, you can call the delegate as if itwere simply a method. Second,… Read More »Invoking a Delegate

Combining Delegates

All the delegates you’ve seen so far have had only a single method in their invocation lists. Delegates can be “combined” by using the addition operator. The result of the operation is the creation of… Read More »Combining Delegates

Assigning Delegates

Because delegates are reference types, you can change the reference contained in a delegate variable by assigning to it. The old delegate object will be disposed of by the garbage collector (GC) when it gets… Read More »Assigning Delegates