private void AddChilrenToTable(Dictionary <IFolderPath, ISolutionFolder> flatChildrenTable) { flatChildrenTable.Add((IFolderPath)Path, this); foreach (ISolutionTreeNode Child in Children) { if (Child is SolutionFolder AsFolder) { AsFolder.AddChilrenToTable(flatChildrenTable); } } }
private void AddChilrenToTable(Dictionary <IFolderPath, ISolutionFolder> FlatChildrenTable) { FlatChildrenTable.Add((IFolderPath)Path, this); foreach (ISolutionTreeNode Child in Children) { SolutionFolder AsFolder; if ((AsFolder = Child as SolutionFolder) != null) { AsFolder.AddChilrenToTable(FlatChildrenTable); } } }