public override void WriteBinHex(byte[] buffer, int index, int count)
{
if (IsClosedOrErrorState)
{
throw new InvalidOperationException(SR.Xml_ClosedOrError);
}
try
{
AdvanceState(Token.Text);
base.WriteBinHex(buffer, index, count);
}
catch
{
_currentState = State.Error;
throw;
}
}