CK.Core.CKExceptionData.ToTextWriter C# (CSharp) Method

ToTextWriter() public method

Writes the exception data as a readable block of text into a TextWriter.
public ToTextWriter ( TextWriter w, string prefix ) : void
w System.IO.TextWriter The TextWriter to write to.
prefix string Prefix that will appear at the start of each line.
return void
        public void ToTextWriter( TextWriter w, string prefix )
        {
            StringWriter sw = w as StringWriter;
            StringBuilder b = sw != null ? sw.GetStringBuilder() : new StringBuilder();
            ToStringBuilder( b, prefix );
            if( sw == null ) w.Write( b.ToString() );
        }