public void Display(DisplayInfo displayInfo) { if (displayInfo.HasFlag(DisplayInfo.DisplaySuffixLinks)) { foreach (var p in internals) { if (p.Parent != null) { var thisSuffix = this.Tree.GetNodeSuffix(p); var linkSuffix = this.Tree.GetNodeSuffix(p.Link); if (displayInfo.HasFlag(DisplayInfo.DisplayContent)) { Debug.Write(thisSuffix); Debug.Write(" | "); Debug.WriteLine(linkSuffix); } else { Debug.Write(thisSuffix.Length.ToString()); Debug.Write(" | "); Debug.WriteLine(linkSuffix.Length.ToString()); } } } } if (displayInfo.HasFlag(DisplayInfo.DisplaySuffixes)) { foreach (var p in suffixes.Values) { var suffix = this.Tree.GetNodeSuffix(p); string format = string.Format("leaf node {{0, 3}} -- Sx={{1, {0}}}", this.Tree.Text.Length); Debug.WriteLine(string.Format(format, p.LeafNumber, displayInfo.HasFlag(DisplayInfo.DisplayContent) ? suffix : suffix.Length.ToString())); } } }