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,EventArgs autoPowerOff);
- C、public delegate void PowerDeviceOn(DateTime autoPowerOff);
- D、public delegate bool PowerDeviceOn(DateTime autoPowerOff);
正确答案:C
答案解析:有
微信扫一扫手机做题