L. P. with Microsoft C# - Level 5-Quiz-1
- A single delegate has the capacity to interact with multiple methods as long as they have the same Signature.
- When a delegate is called, the Target class provides the implementation for that delegate.
- Before a delegate can be multi-cast it must meet certain conditions. Any delegate that returns Void can become a multi cast delegate.
- You have two delegates named DInt and CInt. Which of the following lines of code will create a single, multi-cast delegate out of these two delegates?
MulticastInt = DInt + CInt;
- Acceptance of a new network connection events is a system initiated event.
- Delegates provides the implementation method for an Event.
- An Event has occurred and code needs to be executed in response to this Event.Subscriber provides the implementation code for an Event.
- When an Event is raised, Publisher defines the delegate for that event.
- the following lines of code is a valid declaration of a delegate.
public delegate void SquareResizeHandler (int newSideMeasure);
- When you create an instance of a delegate the parameter that is passed is the Implementing method.
Permalink |
Comments (0) | Hits: 1274 | Time: 14:57:15