public override void WriteChars( char[] buffer, int index, int count ) {
if ( checkValues ) {
CheckCharacters( buffer, index, count );
}
if ( replaceNewLines && WriteState != WriteState.Attribute ) {
string text = ReplaceNewLines( buffer, index, count );
if ( text != null ) {
WriteString( text );
return;
}
}
writer.WriteChars( buffer, index, count );
}