XmlSerializationReader::CheckReaderCount Method (Int32%, Int32%)

 

This API supports the product infrastructure and is not intended to be used directly from your code.

Checks whether the deserializer has advanced.

Namespace:   System.Xml.Serialization
Assembly:  System.Xml (in System.Xml.dll)

protected:
void CheckReaderCount(
	int% whileIterations,
	int% readerCount
)

Parameters

whileIterations
Type: System::Int32%

The current count in a while loop.

readerCount
Type: System::Int32%

The current ReaderCount.

Exception Condition
InvalidOperationException

The ReaderCount has not advanced.

The method is used by generated classes and should not be directly invoked.

The CheckReaderCount method is used when the checkDeserializerAdvances attribute of the <xmlSerializer> configuration element is set to true. For more information, see <xmlSerializer> Element.

.NET Framework
Available since 2.0
Silverlight
Available since 2.0
Return to top
Show: