internal XmlCharCheckingWriter( XmlWriter baseWriter, bool checkValues, bool checkNames, bool replaceNewLines, string newLineChars )
: base( baseWriter ) {
Debug.Assert( checkValues || replaceNewLines );
this.checkValues = checkValues;
this.checkNames = checkNames;
this.replaceNewLines = replaceNewLines;
this.newLineChars = newLineChars;
if ( checkValues ) {
xmlCharType = XmlCharType.Instance;
}
}