protected override void WriteIndent()
{
_writer.WriteLine();
// levels of indentation multiplied by the indent count
int currentIndentCount = Top * _indentation;
if (currentIndentCount > 0)
{
if (_indentChars == null)
{
_indentChars = new string(_indentChar, 10).ToCharArray();
}
while (currentIndentCount > 0)
{
int writeCount = Math.Min(currentIndentCount, 10);
_writer.Write(_indentChars, 0, writeCount);
currentIndentCount -= writeCount;
}
}
}