text: public string ToStringEscaped(){StringBuilder result = new StringBuilder();for (int i = 0; i < this.Length; i++) {if (this.chars[i] == '\\'){result.Append('\\');}else if (this.wasEscaped[i])result.Append('\\');result.Append(this.chars[i]);}return result.ToString();}