You need to write a multicast delegate that accepts a DateTime argument.Which code segment should you use?()
- Apublic delegate int PowerDeviceOn(bool result,DateTime autoPowerOff);
- Bpublic delegate bool PowerDeviceOn(object sender,EventArgs autoPowerOff);
- Cpublic delegate void PowerDeviceOn(DateTime autoPowerOff);
- Dpublic delegate bool PowerDeviceOn(DateTime autoPowerOff);