我正在阅读本网站上的一个主题,我看到了一些不同寻常的类定义,我无法理解这一点。有人可以解释一下这个定义是什么意思吗?了解一些C#代码
public class Node<T> where T : class
{
public Node<T> Next { get; set; }
public T Value { get; set; }
public Node(T value)
{
Next = null;
Value = value;
}
}
特别的地方说
public class Node<T> where T : class
[Generic Type Constraint](http://msdn.microsoft.com/en-us/library/d5x73970.aspx) – ChaosPandion 2011-05-01 20:19:44
[C#where keyword](http:// stackoverflow。com/questions/2774041/c-where-keyword) – ChaosPandion 2011-05-01 20:24:38