//The function which can implement ExportTreeToIndexing. private void CreateIndexingFromTree(List <String> result, IndexingNode curNode, string pathHash) { result.Add(pathHash + "\\" + curNode.ToString()); foreach (IndexingNode n in curNode.Children) { CreateIndexingFromTree(result, n, pathHash + "\\" + curNode.ToString()); } }
public bool Equals(IndexingNode node) { if (node == null) { return(false); } //If root IndexingNode?parent = node.GetParent(); if (_parent == null) { return(parent == null); } else if (parent == null) { return(_parent == null); } else if (_parent.ToString().Equals(parent.ToString(), StringComparison.InvariantCultureIgnoreCase)) { return(ToString().Equals(node.ToString(), StringComparison.InvariantCultureIgnoreCase)); } return(false); }