I think a tree structure is not available in standard .NET libraries because writing it using available collections suck as generic
List
would take… minutes, certainly less then an hour.
Hard to believe?
Here is the idea:
using NodeList = System.Collection.Generic.List<TreeNode>
class TreeNodeData {
}
class TreeNode {
TreeNodeData TreeNodeData;
NodeList Children = new NodeList();
}
Are you getting it?
Add constructor, accessors, operations and you're done!
—SA