private void PrintRecursive(TreeNode treeNode)
{
foreach (TreeNode tn in treeNode.Nodes)
{
PrintRecursive(tn);
}
}
I get the error: Foreach cannot operate on a method group. Did you intend to invoke the ‘method group’?
Assuming you’re using the packaged TreeView control, shouldn’t it be
ChildNodes?: