/// <summary> /// Appends a formatted string to the end of the buffer /// </summary> /// <param name="provider">Format provider</param> /// <param name="format">Format string</param> /// <param name="args">Arguments</param> /// <returns>The DbgStringBuilder instance</returns> public DbgStringBuilder AppendFormatEscaped(IFormatProvider provider, string format, params object[] args) { _sb.Append(DebugUtilities.EncodeTextForXml(_utilities.FormatString(provider, format, args))); return(this); }
/// <summary> /// Appends an items to the end of the buffer followed by a newline, with XML special characters escaped /// </summary> /// <param name="addition">Value to insert</param> /// <returns>The DbgStringBuilder instance</returns> public DbgStringBuilder AppendLineEscaped(string addition) { _sb.Append(DebugUtilities.EncodeTextForXml(addition)); _sb.Append('\n'); return(this); }