<PackageReference Include="System.Xml.ReaderWriter" Version="4.0.11-beta-23409" />

ReadState

public enum ReadState
Specifies the state of the reader.
Closed = 4

The Close method has been called.

The end of the file has been reached successfully.

Error = 2

An error occurred that prevents the read operation from continuing.

Initial = 0

The Read method has not been called.

The Read method has been called. Additional methods may be called on the reader.