protected void CheckReaderCount(ref int whileIterations, ref int readerCount)
{
if (s_checkDeserializeAdvances)
{
whileIterations++;
if ((whileIterations & 0x80) == 0x80)
{
if (readerCount == ReaderCount)
throw new InvalidOperationException(SR.XmlInternalErrorReaderAdvance);
readerCount = ReaderCount;
}
}
}