A.該方法必須返回IEnumerator或IEnumerable類型 B.該方法必須返回IComparable類型 C.該方法必須明確包含集合 D.該方法必須是類中唯一的迭代器
您正在創(chuàng)建一個(gè)類,用于比較經(jīng)過特殊格式設(shè)置的字符串。默認(rèn)的排序規(guī)則比較不適用。您需要實(shí)現(xiàn)IComparable接口。您應(yīng)該使用哪個(gè)代碼段?()
A.A B.B C.C D.D
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);