Question:Which of the following are true regarding event declaration in the code below? class Sample { event MyEventHandlerType MyEvent; } 

A MyEventHandlerType must be derived from System.EventHandler or System.EventHandler<TEventArgs> 

B MyEventHandlerType must take two parameters, the first of the type Object, and the second of a class derived from System.EventArgs 

C MyEventHandlerType may have a non-void return type 

D If MyEventHandlerType is a generic type, event declaration must use a specialization of that type. 

E MyEventHandlerType cannot be declared static 

+ Answer
+ Report
Total Preview: 573

Copyright © 2024. Powered by Intellect Software Ltd