| ||||||
| ||||||

Delegates and Events1. Delegates are typically used to implement what design pattern? Singleton 2.
What information is specified by a delegate?Factory method Publish/subscribe The types of the objects involved in the registration and callback 3.
How many subscribers may be registered with a delegate?The name of the callback method The parameter list and return type of the callback method None - only an event can have registered subscribers 4.
A delegate field has what initial value?One As many as needed Zero 5.
What is the effect of adding the nullEmpty string event keyword to a delegate field?The delegate is automatically made publicClient code is limited to accessing the delegate using only the +=
and -= operatorsThe delegate is limited to handling only one subscriber This material is excerpted from the Programming C# course offered by DevelopMentor. |