單項(xiàng)選擇題

您需要寫一個(gè)接收日期參數(shù)的多播委托,您應(yīng)該使用哪一個(gè)代碼片段() //委托就是一個(gè)方法,題目沒有返回值。

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);

微信掃碼免費(fèi)搜題