public override string ToString() { var hash = new StringBuilder(EndOfWord.ToString()); foreach (var(label, node) in Children.OrderBy(x => x.Key)) { hash.Append(label); hash.Append(node.Id); } return(hash.ToString()); }
public override string ToString() { var result = new StringBuilder(); result.Append("EndOfWord: "); result.AppendLine(EndOfWord.ToString()); result.Append("Position: "); result.AppendLine(Position.ToString()); result.Append("Texts: "); result.AppendLine(string.Join(",", Texts)); return(result.ToString()); }