private void WriteLine(string line) { var space = string.Concat(Enumerable.Repeat(indent, nestingDepth)); writer.WriteLine(space + line); }