繼承我試圖走線槽this tutorial並有related code它。 這部分自IEnumerable
IEnumerator IEnumerable.GetEnumerator()
{
return Items.GetEnumerator();
}
給我一個錯誤
"Using the generic type 'System.Collections.Generic.IEnumerator<T>' requires 1 type arguments"
你能告訴我什麼是錯?謝謝。
確定錯誤具體涉及的那部分的執行?該示例具有類從IEnumerator的繼承和實現該方法'公共的IEnumerator 的GetEnumerator()'。你的代碼也有嗎? –
JLRishe