private void WriteNode(Node <T> node, StringBuilder text) { Obj.Object obj = new Obj.Object(); for (int i = 0; i < node.Data.Count; i++) { if (node.Data[i].ToFixedSizeString() != obj.ToFixedSizeString()) // if not null { text.Append(node.Data[i].ToString()); text.Append("---"); } else { return; } } }
private void InOrder(int ActualPosition, StringBuilder text) { Obj.Object obj = new Obj.Object(); if (ActualPosition == Utilities.NullPointer) { return; } Node <T> node = new Node <T>(); node.ReadNode(this.Path, this.Order, this.Root, ActualPosition, this.createFixedSizeText); for (int i = 0; i < node.Data.Count; i++) { InOrder(node.Children[i], text); if ((i < node.Data.Count) && (node.Data[i].ToFixedSizeString() != obj.ToFixedSizeString())) { text.AppendLine(node.Data[i].ToString()); text.AppendLine("---"); } } }