245 references to ReadState
Microsoft.Build.Engine.UnitTests (1)
Construction\XmlReaderWithoutLocation_Tests.cs (1)
139public override ReadState ReadState
netstandard (1)
netstandard.cs (1)
2289[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Xml.ReadState))]
PresentationBuildTasks (1)
src\Microsoft.DotNet.Wpf\src\Shared\System\Windows\Markup\XmlWrappingReader.cs (1)
63public override ReadState ReadState { get { return _reader.ReadState; } }
PresentationFramework (11)
MS\Internal\Annotations\Serializer.cs (1)
91if (reader.ReadState == ReadState.Initial)
System\Windows\Markup\BamlReader.cs (10)
161_readState = ReadState.Initial; 312if (_readState == ReadState.EndOfFile || 313_readState == ReadState.Closed) 320return _readState != ReadState.EndOfFile; 342if (_readState != ReadState.Closed) 347_readState = ReadState.Closed; 510if(_readState == ReadState.Initial) 541_readState = ReadState.EndOfFile; 550_readState = ReadState.Interactive; 2787private ReadState _readState;
System.Data.Common (5)
System\Data\SQLTypes\SqlXml.cs (4)
149if (reader.ReadState == ReadState.Initial) 187if (reader.ReadState == ReadState.Closed) 190if (reader.ReadState == ReadState.Initial) 244if (reader.ReadState == ReadState.Initial)
System\Data\xmlsaver.cs (1)
3490public override ReadState ReadState
System.IO.Packaging (2)
System\IO\Packaging\PackagingUtilities.cs (1)
31Debug.Assert(reader != null && reader.ReadState == ReadState.Initial);
System\IO\Packaging\XmlWrappingReader.cs (1)
46public override ReadState ReadState { get { return _reader.ReadState; } }
System.Private.DataContractSerialization (35)
System\Runtime\Serialization\ExtensionDataReader.cs (8)
33private ReadState _readState = ReadState.Initial; 120public override bool EOF { get { return IsXmlDataNode ? _xmlNodeReader.EOF : (_readState == ReadState.EndOfFile); } } 121public override ReadState ReadState { get { return IsXmlDataNode ? _xmlNodeReader.ReadState : _readState; } } 242if (ReadState != ReadState.Interactive) 281_readState = ReadState.Closed; 332_readState = ReadState.EndOfFile; 343_readState = ReadState.Interactive;
System\Runtime\Serialization\Json\XmlJsonReader.cs (1)
405if (this.Node.ReadState == ReadState.Closed)
System\Runtime\Serialization\XmlSerializableReader.cs (1)
92public override ReadState ReadState { get { return InnerReader.ReadState; } }
System\Xml\XmlBaseReader.cs (20)
495return _node.ReadState == ReadState.EndOfFile; 1271public override ReadState ReadState 1724if (_node.ReadState != ReadState.Interactive) 2044private readonly ReadState _readState; 2071ReadState readState, 2103public ReadState ReadState { get { return _readState; } } 2365ReadState.Interactive, 2409ReadState.Interactive, 2424ReadState.Interactive, 2438ReadState readState, 2455ReadState.Interactive, 2470ReadState.Interactive, 2485ReadState.Interactive, 2500ReadState.Interactive, 2515ReadState.Interactive, 2530ReadState.Initial, 2545ReadState.Interactive, 2560ReadState.Interactive, 2575ReadState.EndOfFile, 2590ReadState.Closed,
System\Xml\XmlBinaryReader.cs (1)
370if (this.Node.ReadState == ReadState.Closed)
System\Xml\XmlDictionaryReader.cs (2)
455if (this.ReadState != ReadState.Interactive) 1561public override ReadState ReadState
System\Xml\XmlUTF8TextReader.cs (2)
619if (this.Node.ReadState != ReadState.Initial) 1285if (this.Node.ReadState == ReadState.Closed)
System.Private.Xml (166)
System\Xml\BinaryXml\XmlBinaryReader.cs (11)
47private static readonly ReadState[] s_scanState2ReadState = { 48ReadState.Interactive, 49ReadState.Interactive, 50ReadState.Interactive, 51ReadState.Interactive, 52ReadState.Interactive, 53ReadState.Initial, 54ReadState.Error, 55ReadState.EndOfFile, 56ReadState.Closed 922public override ReadState ReadState
System\Xml\Core\XmlAsyncCheckReader.cs (1)
520public override ReadState ReadState
System\Xml\Core\XmlCharCheckingReader.cs (10)
166if (base.reader.ReadState == ReadState.Initial) 358public override ReadState ReadState 365return base.reader.ReadState == ReadState.Closed ? ReadState.Closed : ReadState.Initial; 367return ReadState.Error; 395if (ReadState != ReadState.Interactive) 438if (ReadState != ReadState.Interactive) 486if (ReadState != ReadState.Interactive) 533if (ReadState != ReadState.Interactive)
System\Xml\Core\XmlCharCheckingReaderAsync.cs (5)
24if (base.reader.ReadState == ReadState.Initial) 221if (ReadState != ReadState.Interactive) 264if (ReadState != ReadState.Interactive) 313if (ReadState != ReadState.Interactive) 367if (ReadState != ReadState.Interactive)
System\Xml\Core\XmlReader.cs (9)
619public abstract ReadState ReadState { get; } 624if (ReadState != ReadState.Interactive) 688if (ReadState != ReadState.Interactive) 962if (ReadState == ReadState.Initial) 988Debug.Assert(NodeType == XmlNodeType.EndElement || NodeType == XmlNodeType.None || ReadState == ReadState.Error); 1003if (ReadState == ReadState.Initial) 1105if (ReadState != ReadState.Interactive) 1208if (ReadState != ReadState.Interactive) 1290if (disposing && ReadState != ReadState.Closed)
System\Xml\Core\XmlReaderAsync.cs (3)
120return ReadState != ReadState.Interactive ? Task.CompletedTask : SkipSubtreeAsync(); 181if (ReadState != ReadState.Interactive) 264if (ReadState != ReadState.Interactive)
System\Xml\Core\XmlSubtreeReader.cs (11)
50Initial = ReadState.Initial, 51Interactive = ReadState.Interactive, 52Error = ReadState.Error, 53EndOfFile = ReadState.EndOfFile, 54Closed = ReadState.Closed, 207public override ReadState ReadState 211if (reader.ReadState == ReadState.Error) 213return ReadState.Error; 219return (ReadState)(int)_state; 223return ReadState.Interactive; 603reader.ReadState != ReadState.Interactive);
System\Xml\Core\XmlSubtreeReaderAsync.cs (1)
129reader.ReadState != ReadState.Interactive);
System\Xml\Core\XmlTextReader.cs (1)
251public override ReadState ReadState
System\Xml\Core\XmlTextReaderImpl.cs (21)
252private ReadState _readState = ReadState.Initial; 987public override ReadState ReadState 1238_readState = ReadState.Interactive; 1242_readState = ReadState.Interactive; 1349if (_readState != ReadState.Interactive) 1428if (_readState != ReadState.Interactive || _curAttrIndex < 0) 1612if (_readState != ReadState.Interactive) 1659if (_readState != ReadState.Interactive) 1705if (_readState != ReadState.Interactive) 1752if (_readState != ReadState.Interactive) 1802if (_readState != ReadState.Interactive) 1968if (_readState != ReadState.Initial) 2014if (_readState == ReadState.Closed) 2032return (_readState == ReadState.Interactive) ? _reportedEncoding : null; 2047if (_readState == ReadState.Closed) 2130if (_readState == ReadState.Initial) 2146_readState = ReadState.Initial; 2762_readState = ReadState.Error; 3570_readState = ReadState.Closed; 7755_readState = ReadState.EndOfFile;
System\Xml\Core\XmlTextReaderImplAsync.cs (8)
179_readState = ReadState.Interactive; 272_readState = ReadState.Interactive; 310if (_readState != ReadState.Interactive) 408if (_readState != ReadState.Interactive) 464if (_readState != ReadState.Interactive) 529if (_readState != ReadState.Interactive) 585if (_readState != ReadState.Interactive) 627if (_readState != ReadState.Interactive)
System\Xml\Core\XmlValidatingReader.cs (1)
189public override ReadState ReadState
System\Xml\Core\XmlValidatingReaderImpl.cs (8)
413public override ReadState ReadState 417return (_parsingFunction == ParsingFunction.Init) ? ReadState.Initial : _coreReader.ReadState; 562if (_coreReader.ReadState == ReadState.Interactive) 624if (ReadState != ReadState.Interactive) 648if (ReadState != ReadState.Interactive) 672if (ReadState != ReadState.Interactive) 696if (ReadState != ReadState.Interactive) 887if (ReadState != ReadState.Initial)
System\Xml\Core\XmlValidatingReaderImplAsync.cs (5)
50if (_coreReader.ReadState == ReadState.Interactive) 75if (ReadState != ReadState.Interactive) 99if (ReadState != ReadState.Interactive) 123if (ReadState != ReadState.Interactive) 147if (ReadState != ReadState.Interactive)
System\Xml\Core\XmlWrappingReader.cs (1)
50public override ReadState ReadState { get { return reader.ReadState; } }
System\Xml\Core\XsdCachingReader.cs (1)
530public override ReadState ReadState
System\Xml\Core\XsdValidatingReader.cs (7)
1462if (_coreReader.ReadState == ReadState.Interactive) 1499public override ReadState ReadState 1503return (_validationState == ValidatingReaderState.Init) ? ReadState.Initial : _coreReader.ReadState; 1601if (ReadState != ReadState.Interactive) 1628if (ReadState != ReadState.Interactive) 1655if (ReadState != ReadState.Interactive) 1682if (ReadState != ReadState.Interactive)
System\Xml\Core\XsdValidatingReaderAsync.cs (5)
326if (_coreReader.ReadState == ReadState.Interactive) 384if (ReadState != ReadState.Interactive) 411if (ReadState != ReadState.Interactive) 438if (ReadState != ReadState.Interactive) 465if (ReadState != ReadState.Interactive)
System\Xml\Dom\XmlLoader.cs (3)
46if (_reader.ReadState != ReadState.Interactive) 79if (reader.ReadState == ReadState.Initial) 83if (reader.ReadState == ReadState.Interactive)
System\Xml\Dom\XmlNodeReader.cs (22)
1132private ReadState _readState; // current reader's state 1150_readState = ReadState.Initial; 1160return (_readState == ReadState.Interactive); // || readState == ReadState.EndOfFile 1509if (_readState == ReadState.Initial) 1518_readState = ReadState.Error; 1523_readState = ReadState.Interactive; 1544if (_readState == ReadState.Initial || _readState == ReadState.Interactive) 1545_readState = ReadState.Error; 1546if (_readState == ReadState.EndOfFile) 1554if (_readState != ReadState.Interactive && _readState != ReadState.Initial) 1568(((_readerNav.NodeType == XmlNodeType.Document) || (_readerNav.NodeType == XmlNodeType.DocumentFragment)) && _readState == ReadState.Initial)); 1621_readState = ReadState.EndOfFile; 1645if (_readState == ReadState.Error) 1699get { return (_readState != ReadState.Closed) && _fEOF; } 1706_readState = ReadState.Closed; 1710public override ReadState ReadState 1803if (_readState != ReadState.Interactive) 1827if (_readState != ReadState.Interactive) 1851if (_readState != ReadState.Interactive) 1875if (_readState != ReadState.Interactive)
System\Xml\XPath\XPathDocument.cs (1)
174topLevelReader = (reader.ReadState == ReadState.Initial);
System\Xml\XPath\XPathNavigator.cs (4)
2026ReadState readState = reader.ReadState; 2028if (readState != ReadState.Initial 2029&& readState != ReadState.Interactive) 2034if (readState == ReadState.Initial)
System\Xml\XPath\XPathNavigatorReader.cs (10)
794public override ReadState ReadState 801return ReadState.Initial; 807return ReadState.Interactive; 809return ReadState.EndOfFile; 811return ReadState.Closed; 813return ReadState.Error; 850if (ReadState != ReadState.Interactive) 876if (ReadState != ReadState.Interactive) 902if (ReadState != ReadState.Interactive) 928if (ReadState != ReadState.Interactive)
System\Xml\Xsl\Xslt\XsltInput.cs (4)
52_topLevelReader = reader.ReadState == ReadState.Initial; 101if (_reader.ReadState != ReadState.Interactive) 112if (_reader.ReadState == ReadState.Interactive) 159while (_reader.ReadState == ReadState.Interactive)
System\Xml\Xsl\XsltOld\ReaderOutput.cs (13)
33private ReadState _state = ReadState.Initial; 308Debug.Assert(_processor != null || _state == ReadState.Closed); 310if (_state != ReadState.Interactive) 312if (_state == ReadState.Initial) 314_state = ReadState.Interactive; 361_state = ReadState.EndOfFile; 371get { return _state == ReadState.EndOfFile; } 377_state = ReadState.Closed; 381public override ReadState ReadState 435if (ReadState == ReadState.Interactive) 470if (ReadState == ReadState.Interactive) 546if (ReadState != ReadState.Interactive || NodeType != XmlNodeType.Attribute)
System.Private.Xml.Linq (19)
System\Xml\Linq\XContainer.cs (4)
833if (r.ReadState != ReadState.Interactive) throw new InvalidOperationException(SR.InvalidOperation_ExpectedInteractive); 846if (r.ReadState != ReadState.Interactive) throw new InvalidOperationException(SR.InvalidOperation_ExpectedInteractive); 854if (r.ReadState != ReadState.Interactive) throw new InvalidOperationException(SR.InvalidOperation_ExpectedInteractive); 871if (r.ReadState != ReadState.Interactive) throw new InvalidOperationException(SR.InvalidOperation_ExpectedInteractive);
System\Xml\Linq\XDocument.cs (2)
425if (reader.ReadState == ReadState.Initial) reader.Read(); 464if (reader.ReadState == ReadState.Initial)
System\Xml\Linq\XElement.cs (1)
2048if (r.ReadState != ReadState.Interactive) throw new InvalidOperationException(SR.InvalidOperation_ExpectedInteractive);
System\Xml\Linq\XNode.cs (2)
430if (reader.ReadState != ReadState.Interactive) throw new InvalidOperationException(SR.InvalidOperation_ExpectedInteractive); 475if (reader.ReadState != ReadState.Interactive) throw new InvalidOperationException(SR.InvalidOperation_ExpectedInteractive);
System\Xml\Linq\XNodeReader.cs (10)
16private ReadState _state; 122get { return _state == ReadState.EndOfFile; } 341public override ReadState ReadState 450if (disposing && ReadState != ReadState.Closed) 461_state = ReadState.Closed; 847case ReadState.Initial: 848_state = ReadState.Interactive; 855case ReadState.Interactive: 1068get { return _state == ReadState.Interactive; } 1297_state = ReadState.EndOfFile;
System.ServiceModel.Syndication (1)
System\ServiceModel\Syndication\XmlSyndicationContent.cs (1)
160while (reader.Depth >= 1 && reader.ReadState == ReadState.Interactive)
System.Xaml (1)
src\Microsoft.DotNet.Wpf\src\Shared\System\Windows\Markup\XmlWrappingReader.cs (1)
63public override ReadState ReadState { get { return _reader.ReadState; } }
System.Xml (1)
System.Xml.cs (1)
15[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Xml.ReadState))]
System.Xml.ReaderWriter (1)
artifacts\obj\System.Xml.ReaderWriter\Debug\net10.0\System.Xml.ReaderWriter.Forwards.cs (1)
14[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Xml.ReadState))]