You need to write a multicast delegate that accepts a DateTime argument. Which code segment should you use?

You need to write a multicast delegate that accepts a DateTime argument. Which code segment
should you use?

A. public delegate int PowerDeviceOn(bool result,
    DateTime autoPowerOff);
B. public delegate bool PowerDeviceOn(object sender,
    EventsArgs autoPowerOff);

C. public delegate void PowerDeviceOn(DataTime autoPowerOff);
D. public delegate bool PowerDeviceOn(DataTime autoPowerOff);


Answer: C

No comments:

Post a Comment