280 references to ReadState
PresentationBuildTasks (1)
Base\System\Windows\Markup\XmlWrappingReader.cs (1)
79public override ReadState ReadState { get { return _reader.ReadState; } }
PresentationFramework (11)
src\Framework\MS\Internal\Annotations\Serializer.cs (1)
99if (reader.ReadState == ReadState.Initial)
src\Framework\System\Windows\Markup\BamlReader.cs (10)
180_readState = ReadState.Initial; 331if (_readState == ReadState.EndOfFile || 332_readState == ReadState.Closed) 339return _readState != ReadState.EndOfFile; 361if (_readState != ReadState.Closed) 366_readState = ReadState.Closed; 529if(_readState == ReadState.Initial) 560_readState = ReadState.EndOfFile; 569_readState = ReadState.Interactive; 2821private ReadState _readState;
System.Activities (1)
System\Activities\Debugger\XmlWrappingReader.cs (1)
119public override ReadState ReadState
System.Data (6)
fx\src\data\System\Data\SqlClient\TdsParser.cs (1)
10375if (feed._source.ReadState == ReadState.Initial) {
fx\src\data\System\Data\SQLTypes\SqlXml.cs (4)
165 if (reader.ReadState == ReadState.Initial) 198 if (reader.ReadState == ReadState.Closed) 201 if (reader.ReadState == ReadState.Initial) 251if (reader.ReadState == ReadState.Initial)
fx\src\data\System\Data\xmlsaver.cs (1)
2984public override ReadState ReadState {
System.Data.Services.Client (1)
System\Data\Services\Client\Xml\XmlWrappingReader.cs (1)
242public override ReadState ReadState
System.Data.SqlXml (17)
System\Xml\Xsl\Xslt\XsltInput.cs (4)
56this.topLevelReader = reader.ReadState == ReadState.Initial; 98if (reader.ReadState != ReadState.Interactive) { 108if (reader.ReadState == ReadState.Interactive) { 147while (reader.ReadState == ReadState.Interactive) {
System\Xml\Xsl\XsltOld\ReaderOutput.cs (13)
38private ReadState state = ReadState.Initial; 265Debug.Assert(this.processor != null || this.state == ReadState.Closed); 267if (this.state != ReadState.Interactive) { 268if (this.state == ReadState.Initial) { 269state = ReadState.Interactive; 307this.state = ReadState.EndOfFile; 316get { return this.state == ReadState.EndOfFile; } 321this.state = ReadState.Closed; 325public override ReadState ReadState { 370if (ReadState == ReadState.Interactive) { 399if (ReadState == ReadState.Interactive) { 462if (ReadState != ReadState.Interactive || NodeType != XmlNodeType.Attribute) {
System.IdentityModel (3)
System\IdentityModel\DelegatingXmlDictionaryReader.cs (1)
197public override ReadState ReadState
System\IdentityModel\IdentityModelWrappedXmlDictionaryReader.cs (1)
276public override ReadState ReadState
System\IdentityModel\WrappedXmlDictionaryReader.cs (1)
163public override ReadState ReadState
System.Runtime.Serialization (63)
System\Runtime\Serialization\ExtensionDataReader.cs (8)
37ReadState readState = ReadState.Initial; 128public override bool EOF { get { return IsXmlDataNode ? xmlNodeReader.EOF : (readState == ReadState.EndOfFile); } } 129public override ReadState ReadState { get { return IsXmlDataNode ? xmlNodeReader.ReadState : readState; } } 256if (ReadState != ReadState.Interactive) 295this.readState = ReadState.Closed; 344readState = ReadState.EndOfFile; 355readState = ReadState.Interactive;
System\Runtime\Serialization\Json\XmlJsonReader.cs (1)
410if (this.Node.ReadState == ReadState.Closed)
System\Runtime\Serialization\XmlSerializableReader.cs (1)
91public override ReadState ReadState { get { return InnerReader.ReadState; } }
System\Xml\XmlBaseReader.cs (20)
534return node.ReadState == ReadState.EndOfFile; 1377public override ReadState ReadState 1838if (node.ReadState != ReadState.Interactive) 2170ReadState readState; 2197ReadState readState, 2229public ReadState ReadState { get { return readState; } } 2492ReadState.Interactive, 2536ReadState.Interactive, 2551ReadState.Interactive, 2565ReadState readState, 2582ReadState.Interactive, 2597ReadState.Interactive, 2612ReadState.Interactive, 2627ReadState.Interactive, 2642ReadState.Interactive, 2657ReadState.Initial, 2672ReadState.Interactive, 2687ReadState.Interactive, 2702ReadState.EndOfFile, 2717ReadState.Closed,
System\Xml\XmlBinaryReader.cs (1)
384if (this.Node.ReadState == ReadState.Closed)
System\Xml\XmlDictionaryReader.cs (2)
485if (this.ReadState != ReadState.Interactive) 1595public override ReadState ReadState
System\Xml\XmlMtomReader.cs (28)
337if (xmlReader.ReadState == ReadState.EndOfFile && infosetReader != null) 877public override ReadState ReadState 881if (xmlReader.ReadState != ReadState.Interactive && infosetReader != null) 969if (xmlReader.ReadState == ReadState.Closed) 982if (xmlReader.ReadState == ReadState.Closed) 996if (xmlReader.ReadState == ReadState.Closed) 1079ReadState readState; 1099this.readState = ReadState.Initial; 1118return (readState == ReadState.Interactive) ? nodeType : parentReader.NodeType; 1127case ReadState.Initial: 1128readState = ReadState.Interactive; 1131case ReadState.Interactive: 1134readState = ReadState.EndOfFile; 1142case ReadState.EndOfFile: 1186if (readState == ReadState.Interactive) 1230if (readState == ReadState.Interactive) 1320if (readState != ReadState.Interactive) 1338if (readState != ReadState.Interactive) 1434readState = ReadState.Closed; 1450return (readState == ReadState.Interactive) ? parentReader.Depth + 1 : parentReader.Depth; 1456get { return readState == ReadState.EndOfFile; } 1486get { return readState == ReadState.Interactive; } 1548return (readState == ReadState.Interactive) ? String.Empty : parentReader.LocalName; 1590return (readState == ReadState.Interactive) ? String.Empty : parentReader.Name; 1598return (readState == ReadState.Interactive) ? String.Empty : parentReader.NamespaceURI; 1611return (readState == ReadState.Interactive) ? String.Empty : parentReader.Prefix; 1635public override ReadState ReadState 1683return (readState == ReadState.Interactive) ? typeof(byte[]) : parentReader.ValueType;
System\Xml\XmlUTF8TextReader.cs (2)
380if (this.Node.ReadState != ReadState.Initial) 1050if (this.Node.ReadState == ReadState.Closed)
System.ServiceModel (5)
System\ServiceModel\Channels\Message.cs (2)
1242if (bodyReader.ReadState == ReadState.Error || bodyReader.ReadState == ReadState.Closed)
System\ServiceModel\Dispatcher\SeekableMessageNavigator.cs (2)
1740if (reader.ReadState == ReadState.Initial) 1768if (reader.ReadState == ReadState.Initial)
System\ServiceModel\Syndication\XmlSyndicationContent.cs (1)
185while (reader.Depth >= 1 && reader.ReadState == ReadState.Interactive)
System.ServiceModel.Channels (5)
System\ServiceModel\Channels\XmlByteStreamReader.cs (5)
145public override ReadState ReadState 152return ReadState.Initial; 156return ReadState.Interactive; 158return ReadState.Closed; 161return ReadState.Error;
System.Web.Services (1)
System\Web\Services\Description\ServiceDescription.cs (1)
373if (reader.ReadState != ReadState.Initial) {
System.Xml (150)
System\Xml\BinaryXml\XmlBinaryReader.cs (11)
49static ReadState[] ScanState2ReadState = { 50ReadState.Interactive, 51ReadState.Interactive, 52ReadState.Interactive, 53ReadState.Interactive, 54ReadState.Interactive, 55ReadState.Initial, 56ReadState.Error, 57ReadState.EndOfFile, 58ReadState.Closed 814public override ReadState ReadState {
System\Xml\Core\XmlAsyncCheckReader.cs (1)
441public override ReadState ReadState {
System\Xml\Core\XmlCharCheckingReader.cs (10)
153if ( base.reader.ReadState == ReadState.Initial ) { 315public override ReadState ReadState { 319return base.reader.ReadState == ReadState.Closed ? ReadState.Closed : ReadState.Initial; 321return ReadState.Error; 344if (ReadState != ReadState.Interactive) { 380if (ReadState != ReadState.Interactive) { 430if (ReadState != ReadState.Interactive) { 479if (ReadState != ReadState.Interactive) {
System\Xml\Core\XmlCharCheckingReaderAsync.cs (5)
21if ( base.reader.ReadState == ReadState.Initial ) { 184if (ReadState != ReadState.Interactive) { 220if (ReadState != ReadState.Interactive) { 270if (ReadState != ReadState.Interactive) { 319if (ReadState != ReadState.Interactive) {
System\Xml\Core\XmlReader.cs (9)
609public abstract ReadState ReadState { get; } 613if (ReadState != ReadState.Interactive) { 685if (this.ReadState != ReadState.Interactive) { 918if (ReadState == ReadState.Initial) { 939Debug.Assert(NodeType == XmlNodeType.EndElement || NodeType == XmlNodeType.None || ReadState == ReadState.Error); 955if (ReadState == ReadState.Initial) { 1049if (ReadState != ReadState.Interactive) { 1144if (ReadState != ReadState.Interactive) { 1227if (disposing && ReadState != ReadState.Closed) {
System\Xml\Core\XmlReaderAsync.cs (3)
121if (ReadState != ReadState.Interactive) { 178if (ReadState != ReadState.Interactive) { 259if (ReadState != ReadState.Interactive) {
System\Xml\Core\XmlSubtreeReader.cs (11)
45Initial = ReadState.Initial, 46Interactive = ReadState.Interactive, 47Error = ReadState.Error, 48EndOfFile = ReadState.EndOfFile, 49Closed = ReadState.Closed, 179public override ReadState ReadState { 181if ( reader.ReadState == ReadState.Error ) { 182return ReadState.Error; 186return (ReadState)(int)state; 189return ReadState.Interactive; 490reader.ReadState != ReadState.Interactive );
System\Xml\Core\XmlSubtreeReaderAsync.cs (1)
111reader.ReadState != ReadState.Interactive );
System\Xml\Core\XmlTextReader.cs (1)
220public override ReadState ReadState {
System\Xml\Core\XmlTextReaderImpl.cs (21)
284ReadState readState = ReadState.Initial; 971public override ReadState ReadState { 1175readState = ReadState.Interactive; 1179readState = ReadState.Interactive; 1287if ( readState != ReadState.Interactive ) 1357if ( readState != ReadState.Interactive || curAttrIndex < 0 ) { 1540if ( readState != ReadState.Interactive ) { 1588if ( readState != ReadState.Interactive ) { 1635if ( readState != ReadState.Interactive ) { 1683if ( readState != ReadState.Interactive ) { 1733if ( readState != ReadState.Interactive ) { 1869if ( readState != ReadState.Initial ) { 1901if ( readState == ReadState.Closed ) { 1915return ( readState == ReadState.Interactive ) ? reportedEncoding : null; 1927if ( readState == ReadState.Closed ) { 1994if ( readState == ReadState.Initial ) { 2007readState = ReadState.Initial; 2526readState = ReadState.Error; 3260readState = ReadState.Closed; 6996readState = ReadState.EndOfFile;
System\Xml\Core\XmlTextReaderImplAsync.cs (8)
166readState = ReadState.Interactive; 260readState = ReadState.Interactive; 291if ( readState != ReadState.Interactive ) 387if ( readState != ReadState.Interactive ) { 442if ( readState != ReadState.Interactive ) { 505if ( readState != ReadState.Interactive ) { 560if ( readState != ReadState.Interactive ) { 605if ( readState != ReadState.Interactive ) {
System\Xml\Core\XmlValidatingReader.cs (1)
164public override ReadState ReadState {
System\Xml\Core\XmlValidatingReaderImpl.cs (8)
356public override ReadState ReadState { 358return ( parsingFunction == ParsingFunction.Init ) ? ReadState.Initial : coreReader.ReadState; 477if ( coreReader.ReadState == ReadState.Interactive ) { 529if ( ReadState != ReadState.Interactive ) { 550if ( ReadState != ReadState.Interactive ) { 571if ( ReadState != ReadState.Interactive ) { 592if ( ReadState != ReadState.Interactive ) { 745if ( ReadState != ReadState.Initial ) {
System\Xml\Core\XmlValidatingReaderImplAsync.cs (5)
46if ( coreReader.ReadState == ReadState.Interactive ) { 68if ( ReadState != ReadState.Interactive ) { 89if ( ReadState != ReadState.Interactive ) { 110if ( ReadState != ReadState.Interactive ) { 131if ( ReadState != ReadState.Interactive ) {
System\Xml\Core\XmlWrappingReader.cs (1)
54public override ReadState ReadState { get { return reader.ReadState; } }
System\Xml\Core\XsdCachingReader.cs (1)
459public override ReadState ReadState {
System\Xml\Core\XsdValidatingReader.cs (7)
1138if (coreReader.ReadState == ReadState.Interactive) { //If the underlying reader is already positioned on a ndoe, process it 1169public override ReadState ReadState { 1171return (validationState == ValidatingReaderState.Init) ? ReadState.Initial : coreReader.ReadState; 1246if (ReadState != ReadState.Interactive) { 1269if (ReadState != ReadState.Interactive) { 1292if (ReadState != ReadState.Interactive) { 1315if (ReadState != ReadState.Interactive) {
System\Xml\Core\XsdValidatingReaderAsync.cs (5)
259if (coreReader.ReadState == ReadState.Interactive) { //If the underlying reader is already positioned on a ndoe, process it 306if (ReadState != ReadState.Interactive) { 329if (ReadState != ReadState.Interactive) { 352if (ReadState != ReadState.Interactive) { 375if (ReadState != ReadState.Interactive) {
System\Xml\Dom\XmlLoader.cs (3)
44if ( this.reader.ReadState != ReadState.Interactive ) { 73if( reader.ReadState == ReadState.Initial ) { 76if( reader.ReadState == ReadState.Interactive ) {
System\Xml\Dom\XmlNodeReader.cs (22)
958ReadState readState; // current reader's state 976readState = ReadState.Initial; 985return ( readState == ReadState.Interactive ); // || readState == ReadState.EndOfFile 1279if ( readState == ReadState.Initial ) { 1285readState = ReadState.Error; 1290readState = ReadState.Interactive; 1309if ( readState == ReadState.Initial || readState == ReadState.Interactive ) 1310readState = ReadState.Error; 1311if ( readState == ReadState.EndOfFile ) 1318if ( readState != ReadState.Interactive && readState != ReadState.Initial ) { 1331( ( ( readerNav.NodeType == XmlNodeType.Document ) || ( readerNav.NodeType == XmlNodeType.DocumentFragment ) ) && readState == ReadState.Initial) ); 1373readState = ReadState.EndOfFile; 1392if ( readState == ReadState.Error ) 1436get { return (readState != ReadState.Closed) && fEOF; } 1442readState = ReadState.Closed; 1446public override ReadState ReadState { 1523if ( readState != ReadState.Interactive ) { 1544if ( readState != ReadState.Interactive ) { 1565if ( readState != ReadState.Interactive ) { 1586if ( readState != ReadState.Interactive ) {
System\Xml\Serialization\XmlCountingReader.cs (1)
55public override ReadState ReadState { get { return innerReader.ReadState; } }
System\Xml\XPath\XPathDocument.cs (1)
165topLevelReader = (reader.ReadState == ReadState.Initial);
System\Xml\XPath\XPathNavigator.cs (4)
1783ReadState readState = reader.ReadState; 1785if (readState != ReadState.Initial 1786&& readState != ReadState.Interactive) { 1790if ( readState == ReadState.Initial ) {
System\Xml\XPath\XPathNavigatorReader.cs (10)
686public override ReadState ReadState { 690return ReadState.Initial; 696return ReadState.Interactive; 698return ReadState.EndOfFile; 700return ReadState.Closed; 702return ReadState.Error; 732if ( ReadState != ReadState.Interactive ) { 755if ( ReadState != ReadState.Interactive ) { 778if ( ReadState != ReadState.Interactive ) { 801if ( ReadState != ReadState.Interactive ) {
System.Xml.Linq (14)
System\Xml\Linq\XLinq.cs (14)
1831if (reader.ReadState != ReadState.Interactive) throw new InvalidOperationException(Res.GetString(Res.InvalidOperation_ExpectedInteractive)); 3029if (r.ReadState != ReadState.Interactive) throw new InvalidOperationException(Res.GetString(Res.InvalidOperation_ExpectedInteractive)); 3093if (r.ReadState != ReadState.Interactive) throw new InvalidOperationException(Res.GetString(Res.InvalidOperation_ExpectedInteractive)); 5067if (r.ReadState != ReadState.Interactive) throw new InvalidOperationException(Res.GetString(Res.InvalidOperation_ExpectedInteractive)); 5714if (reader.ReadState == ReadState.Initial) reader.Read(); 8068ReadState state; 8156get { return state == ReadState.EndOfFile; } 8328public override ReadState ReadState { 8418state = ReadState.Closed; 8717case ReadState.Initial: 8718state = ReadState.Interactive; 8724case ReadState.Interactive: 8925get { return state == ReadState.Interactive; } 9109state = ReadState.EndOfFile;
WindowsBase (2)
Base\System\Windows\Markup\XmlWrappingReader.cs (1)
79public override ReadState ReadState { get { return _reader.ReadState; } }
Shared\MS\Internal\IO\Packaging\PackagingUtilities.cs (1)
69Invariant.Assert(reader != null && reader.ReadState == ReadState.Initial);