I am not sure if there is code to do the conversion. but It is not hard to code a converter yourself
Here is a sample snippet to do the conversion (please note that I have not tested this)
Code Block
TreeNodeCollection NodeCollectionToTreeNodeCollection(NodeCollection nodeCollection)
{
TreeNodeCollection result = new TreeNodeCollection();
foreach (Node node in NodeCollection)
{
result.Add(NodeToTreeNode(node));
}
return result;
}
//constructs a TreeNode from a node
TreeNode NodeToTreeNode(Node node)
{
TreeNode treeNode = new TreeNode(node.Name);
foreach (Node child in node.ChildNodes)
{
treeNode.Nodes.Add(NodeToTreeNode(child));
}
return treeNode;
}
Hope this helps;