private TextBuffer(IPiece <char> text, IContentType contentType) { ContentType = contentType; _currentSnapshot = new TextSnapshot(this, PieceTable.ForPiece(text)); }