using System.Collections.Generic;
public sealed class LoLQueue<T> where T: class
{
private SingleLinkNode<T> mHe;
private SingleLinkNode<T> mTa;
public LoLQueue()
{
this.mHe = new SingleLinkNode<T>();
this.mTa = this.mHe;
}
}
錯誤:非泛型類型「System.Collections.IEnumerable」不能與類型參數一起使用
The non-generic type 'LoLQueue<T>.SingleLinkNode' cannot be used with type arguments
,爲什麼我會這樣?
您對SingleLinkNode的定義是什麼? –