You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Radarr/NzbDrone.Common/Expansive/TreeNodeList.cs

32 lines
664 B

12 years ago
using System.Collections.Generic;
namespace NzbDrone.Common.Expansive
{
internal class TreeNodeList<T> : List<TreeNode<T>>
{
public TreeNode<T> Parent;
public TreeNodeList(TreeNode<T> Parent)
{
this.Parent = Parent;
}
public new TreeNode<T> Add(TreeNode<T> Node)
{
base.Add(Node);
Node.Parent = Parent;
return Node;
}
public TreeNode<T> Add(T Value)
{
return Add(new TreeNode<T>(Value));
}
public override string ToString()
{
return "Count=" + Count.ToString();
}
}
}