A delegate is similar to a class that is used for storing the reference to a method and invoking that method at runtime, as required. A delegate
can hold the reference of only those methods whose signatures are same as that of the delegate. Some of the examples of delegates are type-safe
functions, pointers, or callbacks.
What is a multicast delegate?
Each delegate object holds reference to a single method. However, it is possible for a delegate object to hold references of and invoke multiple methods. Such delegate objects are called multicast delegates.
No comments:
Post a Comment