日期:2014-05-18 浏览次数:20679 次
class Tree<T> { public T Root { get; set; } public List<Node<T>> Nodes { get; private set; } public Tree() { Nodes = new List<Node<T>>(); } } class Node<T> { public T Value { get; set; } public List<Node<T>> Nodes { get; private set; } public Node() { Nodes = new List<Node<T>>(); } }