【发布时间】:2011-10-19 09:03:47
【问题描述】:
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;
}
}
错误:
The non-generic type 'LoLQueue<T>.SingleLinkNode' cannot be used with type arguments
我为什么会得到这个?
【问题讨论】:
-
你对 SingleLinkNode 的定义是什么?
标签: c# .net generics queue nodes