CheckReaderCount Method
Collapse the table of content
Expand the table of content

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(
	ref int whileIterations,
	ref int readerCount


Type: System.Int32

The current count in a while loop.

Type: System.Int32

The current ReaderCount.

Exception Condition

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
Available since 2.0
Return to top
© 2016 Microsoft