public static void WriteTo(this Rope<char> rope, TextWriter output, int startIndex, int length)
{
if (rope == null)
throw new ArgumentNullException("rope");
if (output == null)
throw new ArgumentNullException("output");
rope.VerifyRange(startIndex, length);
rope.root.WriteTo(startIndex, output, length);
}