May 2010
Intermediate to advanced
1272 pages
61h 18m
English
A delegate can hold a reference (that is, the address) to a method. It is possible to create delegates holding references to more than one method by creating multicast delegates. A multicast delegate is the combination of two or more delegates into a single delegate, providing the delegate the ability to make multiple invocations. The following code demonstrates how to create a multicast delegate, having two instances of the same delegate pointing to two different methods:

In this scenario you have two methods that behave differently, but both respect the delegate signature. A new delegate (CombinedDelegate ...
Read now
Unlock full access