22 overrides of NodeType
Microsoft.Build.Engine.UnitTests (1)
Construction\XmlReaderWithoutLocation_Tests.cs (1)
119public override XmlNodeType NodeType
PresentationBuildTasks (1)
src\Microsoft.DotNet.Wpf\src\Shared\System\Windows\Markup\XmlWrappingReader.cs (1)
41public override XmlNodeType NodeType { get { return _reader.NodeType; } }
System.Data.Common (1)
System\Data\xmlsaver.cs (1)
3341public override XmlNodeType NodeType
System.IO.Packaging (1)
System\IO\Packaging\XmlWrappingReader.cs (1)
26public override XmlNodeType NodeType { get { return _reader.NodeType; } }
System.Private.DataContractSerialization (4)
System\Runtime\Serialization\ExtensionDataReader.cs (1)
113public override XmlNodeType NodeType { get { return IsXmlDataNode ? _xmlNodeReader.NodeType : _nodeType; } }
System\Runtime\Serialization\XmlSerializableReader.cs (1)
71public override XmlNodeType NodeType { get { return InnerReader.NodeType; } }
System\Xml\XmlBaseReader.cs (1)
921public sealed override XmlNodeType NodeType
System\Xml\XmlDictionaryReader.cs (1)
1487public override XmlNodeType NodeType
System.Private.Xml (12)
System\Xml\BinaryXml\XmlBinaryReader.cs (1)
419public override XmlNodeType NodeType
System\Xml\Core\XmlAsyncCheckReader.cs (1)
82public override XmlNodeType NodeType
System\Xml\Core\XmlTextReader.cs (1)
112public override XmlNodeType NodeType
System\Xml\Core\XmlTextReaderImpl.cs (1)
857public override XmlNodeType NodeType
System\Xml\Core\XmlValidatingReader.cs (1)
50public override XmlNodeType NodeType
System\Xml\Core\XmlValidatingReaderImpl.cs (1)
287public override XmlNodeType NodeType
System\Xml\Core\XmlWrappingReader.cs (1)
34public override XmlNodeType NodeType { get { return reader.NodeType; } }
System\Xml\Core\XsdCachingReader.cs (1)
108public override XmlNodeType NodeType
System\Xml\Core\XsdValidatingReader.cs (1)
213public override XmlNodeType NodeType
System\Xml\Dom\XmlNodeReader.cs (1)
1168public override XmlNodeType NodeType
System\Xml\XPath\XPathNavigatorReader.cs (1)
193public override XmlNodeType NodeType
System\Xml\Xsl\XsltOld\ReaderOutput.cs (1)
53public override XmlNodeType NodeType
System.Private.Xml.Linq (1)
System\Xml\Linq\XNodeReader.cs (1)
274public override XmlNodeType NodeType
System.Xaml (1)
src\Microsoft.DotNet.Wpf\src\Shared\System\Windows\Markup\XmlWrappingReader.cs (1)
41public override XmlNodeType NodeType { get { return _reader.NodeType; } }
537 references to NodeType
Microsoft.AspNetCore.Mvc.Formatters.Xml (3)
ProblemDetailsWrapper.cs (1)
57while (reader.NodeType != XmlNodeType.EndElement)
SerializableErrorWrapper.cs (1)
65while (reader.NodeType != XmlNodeType.EndElement)
ValidationProblemDetailsWrapper.cs (1)
61while (reader.NodeType != XmlNodeType.EndElement)
Microsoft.Build (2)
BackEnd\Components\SdkResolution\SdkResolverManifest.cs (2)
78if (reader.NodeType == XmlNodeType.Element && reader.Name == "SdkResolver") 110switch (reader.NodeType)
Microsoft.Build.Engine.UnitTests (1)
Construction\XmlReaderWithoutLocation_Tests.cs (1)
121get { return _wrappedReader.NodeType; }
Microsoft.Build.Tasks.Core (15)
AppConfig\AppConfig.cs (1)
84if (reader.NodeType == XmlNodeType.Element && StringEquals(reader.Name, "runtime"))
AppConfig\DependentAssembly.cs (3)
54if (reader.NodeType == XmlNodeType.EndElement && AppConfig.StringEquals(reader.Name, "dependentassembly")) 60if (reader.NodeType == XmlNodeType.Element && AppConfig.StringEquals(reader.Name, "assemblyIdentity")) 104if (reader.NodeType == XmlNodeType.Element && AppConfig.StringEquals(reader.Name, "bindingRedirect"))
AppConfig\RuntimeSection.cs (2)
24if (reader.NodeType == XmlNodeType.EndElement && AppConfig.StringEquals(reader.Name, "runtime")) 30if (reader.NodeType == XmlNodeType.Element && AppConfig.StringEquals(reader.Name, "dependentAssembly"))
GenerateResource.cs (2)
1775if (reader.NodeType == XmlNodeType.Element) 1973if (reader.NodeType == XmlNodeType.Element)
ManifestUtil\ManifestReader.cs (1)
236} while (r.NodeType != XmlNodeType.Element);
RedistList.cs (6)
669if (reader.NodeType == XmlNodeType.Element) 734if (reader.NodeType == XmlNodeType.Element) 768if (reader.NodeType == XmlNodeType.EndElement && string.Equals(reader.Name, "From", StringComparison.OrdinalIgnoreCase)) 774if (reader.NodeType == XmlNodeType.EndElement && string.Equals(reader.Name, "Remap", StringComparison.OrdinalIgnoreCase)) 788if (reader.NodeType == XmlNodeType.Element) 818if (reader.NodeType == XmlNodeType.EndElement && string.Equals(reader.Name, "FileList", StringComparison.OrdinalIgnoreCase))
Microsoft.Build.Utilities.Core (1)
ToolLocationHelper.cs (1)
3137if (reader.NodeType == XmlNodeType.Element)
Microsoft.CodeAnalysis (1)
DocumentationComments\XmlDocumentationCommentTextReader.XmlStream.cs (1)
77&& reader.NodeType == XmlNodeType.EndElement
Microsoft.CodeAnalysis.Workspaces (2)
Shared\Utilities\DocumentationComment.cs (1)
230if (reader.NodeType == XmlNodeType.Element)
Shared\Utilities\XmlFragmentParser.cs (1)
107&& _xmlReader.NodeType == XmlNodeType.EndElement
Microsoft.Extensions.Configuration.Xml (4)
XmlStreamConfigurationProvider.cs (4)
56XmlNodeType preNodeType = reader.NodeType; 60switch (reader.NodeType) 166throw new FormatException(SR.Format(SR.Error_UnsupportedNodeType, reader.NodeType, GetLineInfo(reader))); 168preNodeType = reader.NodeType;
Microsoft.Maui.Controls.Build.Tasks (5)
XamlTask.cs (5)
50 if (reader.NodeType == XmlNodeType.Whitespace) 52 if (reader.NodeType != XmlNodeType.Element) 54 Debug.WriteLine("Unhandled node {0} {1} {2}", reader.NodeType, reader.Name, reader.Value); 80 while (reader.Read() && reader.NodeType != XmlNodeType.Element) 83 if (reader.NodeType != XmlNodeType.Element)
Microsoft.Maui.Controls.Xaml (19)
XamlLoader.cs (12)
68 if (reader.NodeType == XmlNodeType.Whitespace) 70 if (reader.NodeType == XmlNodeType.XmlDeclaration) 72 if (reader.NodeType != XmlNodeType.Element) 74 Debug.WriteLine("Unhandled node {0} {1} {2}", reader.NodeType, reader.Name, reader.Value); 110 if (reader.NodeType == XmlNodeType.Whitespace) 112 if (reader.NodeType == XmlNodeType.XmlDeclaration) 114 if (reader.NodeType != XmlNodeType.Element) 116 Debug.WriteLine("Unhandled node {0} {1} {2}", reader.NodeType, reader.Name, reader.Value); 151 if (reader.NodeType == XmlNodeType.Whitespace) 153 if (reader.NodeType == XmlNodeType.XmlDeclaration) 155 if (reader.NodeType != XmlNodeType.Element) 157 Debug.WriteLine("Unhandled node {0} {1} {2}", reader.NodeType, reader.Name, reader.Value);
XamlParser.cs (7)
54 Debug.Assert(reader.NodeType == XmlNodeType.Element); 64 switch (reader.NodeType) 130 Debug.WriteLine("Unhandled node {0} {1} {2}", reader.NodeType, reader.Name, reader.Value); 139 Debug.Assert(reader.NodeType == XmlNodeType.Element); 148 switch (reader.NodeType) 188 Debug.WriteLine("Unhandled node {0} {1} {2}", reader.NodeType, reader.Name, reader.Value); 206 Debug.Assert(reader.NodeType == XmlNodeType.Element);
Microsoft.Maui.Graphics (1)
Text\XmlAttributedTextReader.cs (1)
40 switch (_reader.NodeType)
PresentationBuildTasks (15)
MS\Internal\MarkupCompiler\MarkupCompiler.cs (1)
786XmlNodeType currNodeType = xmlReader.NodeType;
MS\Internal\MarkupCompiler\ParserExtension.cs (2)
417string attrName = (xmlReader.NodeType == XmlNodeType.Attribute) ? xmlReader.Name : null; 716while (!xamlDefTagNode.IsEmptyElement && xamlDefTagNode.XmlReader.NodeType != XmlNodeType.EndElement)
src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\XamlReaderHelper.cs (9)
382switch (XmlReader.NodeType) 1241switch (XmlReader.NodeType) 1324XmlReader.NodeType.ToString()); 2070CompileBamlTag(XmlReader.NodeType, ref endTagHasBeenRead); 2086switch (XmlReader.NodeType) 2092CompileText(XmlReader.NodeType, XmlReader.Value); 2152CompileText(XmlReader.NodeType, XmlReader.Value); 3803CompileText(XmlReader.NodeType, XmlReader.Value); 52210 == XmlReader.Depth && XmlReader.NodeType == XmlNodeType.None))
src\Microsoft.DotNet.Wpf\src\Shared\System\Windows\Markup\XmlCompatibilityReader.cs (2)
170switch (Reader.NodeType) 744_inAttribute = (Reader.NodeType == XmlNodeType.Attribute);
src\Microsoft.DotNet.Wpf\src\Shared\System\Windows\Markup\XmlWrappingReader.cs (1)
41public override XmlNodeType NodeType { get { return _reader.NodeType; } }
PresentationCore (7)
MS\Internal\FontFace\CompositeFontParser.cs (7)
199if (_reader.NodeType == XmlNodeType.Attribute) 206if (_reader.NodeType == XmlNodeType.Attribute) 289switch (_reader.NodeType) 301return _reader.NodeType; 403if (_reader.NodeType == XmlNodeType.Element && _reader.NamespaceURI == CompositeFontNamespace) 569if (_reader.NodeType == XmlNodeType.Element && _reader.NamespaceURI == CompositeFontNamespace) 817if (_reader.NodeType == XmlNodeType.Element && _reader.NamespaceURI == CompositeFontNamespace)
PresentationFramework (15)
MS\Internal\IO\Packaging\XamlFilter.cs (1)
392switch (_xamlReader.NodeType)
System\Windows\Annotations\Annotation.cs (6)
283while (!(XmlNodeType.EndElement == reader.NodeType && AnnotationXmlConstants.Elements.Annotation == reader.LocalName)) 292while (!(AnnotationXmlConstants.Elements.AnchorCollection == reader.LocalName && XmlNodeType.EndElement == reader.NodeType)) 307while (!(AnnotationXmlConstants.Elements.CargoCollection == reader.LocalName && XmlNodeType.EndElement == reader.NodeType)) 322while (!(AnnotationXmlConstants.Elements.AuthorCollection == reader.LocalName && XmlNodeType.EndElement == reader.NodeType)) 324if (!(AnnotationXmlConstants.Elements.StringAuthor == reader.LocalName && XmlNodeType.Element == reader.NodeType)) 516if (reader.NodeType == XmlNodeType.Attribute)
System\Windows\Annotations\AnnotationResource.cs (2)
173while (!(AnnotationXmlConstants.Elements.Resource == reader.LocalName && XmlNodeType.EndElement == reader.NodeType)) 185else if (XmlNodeType.Element == reader.NodeType)
System\Windows\Annotations\LocatorGroup.cs (1)
134while (!(AnnotationXmlConstants.Elements.ContentLocatorGroup == reader.LocalName && XmlNodeType.EndElement == reader.NodeType))
System\Windows\Annotations\LocatorPartList.cs (4)
218while (!(AnnotationXmlConstants.Elements.ContentLocator == reader.LocalName && XmlNodeType.EndElement == reader.NodeType)) 220if (XmlNodeType.Element != reader.NodeType) 236while (!(XmlNodeType.EndElement == reader.NodeType && part.PartType.Name == reader.LocalName)) 279if (!(XmlNodeType.EndElement == reader.NodeType && AnnotationXmlConstants.Elements.Item == reader.LocalName))
System\Windows\Documents\FixedFindEngine.cs (1)
387switch (xmlReader.NodeType)
ReachFramework (5)
Packaging\XpsFixedDocumentReaderWriter.cs (2)
1093if( reader.NodeType == XmlNodeType.Element && 1102if( reader.NodeType == XmlNodeType.EndElement &&
Packaging\XPSSignatureDefinition.cs (3)
414if( reader.NodeType != XmlNodeType.Element || 430switch( reader.NodeType ) 575switch (reader.NodeType)
System.Configuration.ConfigurationManager (7)
System\Configuration\ConfigurationElement.cs (4)
1503if (reader.NodeType == XmlNodeType.Element) 1553if (reader.NodeType == XmlNodeType.EndElement) break; 1555if ((reader.NodeType == XmlNodeType.CDATA) || (reader.NodeType == XmlNodeType.Text))
System\Configuration\ConfigurationSection.cs (1)
39if (!reader.Read() || (reader.NodeType != XmlNodeType.Element))
System\Configuration\DefaultSection.cs (1)
51if (!xmlReader.Read() || (xmlReader.NodeType != XmlNodeType.Element))
System\Configuration\IgnoreSection.cs (1)
51if (!xmlReader.Read() || (xmlReader.NodeType != XmlNodeType.Element))
System.Data.Common (51)
System\Data\Common\ObjectStorage.cs (1)
430if (type == typeof(string) && xmlReader.NodeType == XmlNodeType.Element && xmlReader.IsEmptyElement)
System\Data\DataSet.cs (23)
202if (reader.NodeType == XmlNodeType.Element) 1590if (reader.NodeType == XmlNodeType.Element) 1689if (reader.NodeType == XmlNodeType.Element) 1696if (reader.NodeType == XmlNodeType.Element) 1784while (!reader.EOF && reader.NodeType != XmlNodeType.EndElement && reader.NodeType != XmlNodeType.Element && reader.Depth > depth) 1788return (reader.NodeType == XmlNodeType.Element); 1793while (!reader.EOF && reader.NodeType != XmlNodeType.EndElement && reader.NodeType != XmlNodeType.Element) 1800while (reader.NodeType == XmlNodeType.Whitespace) 1804if (reader.NodeType == XmlNodeType.None) 1808else if (reader.NodeType == XmlNodeType.EndElement) 1845while (reader.NodeType == XmlNodeType.Whitespace) 2113if (reader.NodeType == XmlNodeType.Element) 2118if (reader.NodeType == XmlNodeType.Element) 2218while (!reader.EOF && reader.NodeType == XmlNodeType.Whitespace) 2220if (reader.NodeType != XmlNodeType.Element) 2483if (reader.NodeType == XmlNodeType.Whitespace) 2498if (reader.NodeType == XmlNodeType.Whitespace) 2509if (reader.NodeType == XmlNodeType.Whitespace) 2514Debug.Assert(reader.NodeType != XmlNodeType.Whitespace, "Should not be on Whitespace node"); 2625if ((mode != XmlReadMode.Fragment) && (reader.NodeType == XmlNodeType.Element)) 2633if (reader.NodeType == XmlNodeType.Element)
System\Data\DataTable.cs (10)
5789if (reader.NodeType == XmlNodeType.Element) 6016if ((mode != XmlReadMode.Fragment) && (reader.NodeType == XmlNodeType.Element)) 6033if (reader.NodeType == XmlNodeType.Element) 6272while (reader.NodeType == XmlNodeType.Whitespace) 6276if (reader.NodeType == XmlNodeType.None) 6280else if (reader.NodeType == XmlNodeType.EndElement) 6294while (!reader.EOF && reader.NodeType != XmlNodeType.EndElement && reader.NodeType != XmlNodeType.Element && reader.Depth > depth) 6298return (reader.NodeType == XmlNodeType.Element); 6334if (reader.NodeType == XmlNodeType.Whitespace)
System\Data\XmlDataLoader.cs (5)
631if (reader.NodeType != XmlNodeType.Element) 744switch (_dataReader.NodeType) 973switch (_dataReader.NodeType) 1243switch (_dataReader.NodeType) 1255while (_dataReader.Read() && entryDepth < _dataReader.Depth && IsTextLikeNode(_dataReader.NodeType))
System\Data\XMLDiffLoader.cs (11)
203if (XmlNodeType.Element == ssync.NodeType) 214while ((ssync.NodeType == XmlNodeType.EndElement) && (iSsyncDepth < ssync.Depth)) 258if (XmlNodeType.Element == ssync.NodeType) 268while ((ssync.NodeType == XmlNodeType.EndElement) && (iSsyncDepth < ssync.Depth)) 357if (currentDepth == iRowDepth && row.NodeType == XmlNodeType.EndElement) 382while ((row.NodeType != XmlNodeType.EndElement) && (row.LocalName != ln) && (row.NamespaceURI != ns)) 435if (row.NodeType == XmlNodeType.Text || row.NodeType == XmlNodeType.Whitespace || row.NodeType == XmlNodeType.SignificantWhitespace) 459while (reader.NodeType == XmlNodeType.Whitespace || reader.NodeType == XmlNodeType.SignificantWhitespace)
System\Data\xmlsaver.cs (1)
3345return _xmlreader.NodeType;
System.IO.Packaging (14)
System\IO\Packaging\PackagingUtilities.cs (2)
34if (reader.Read() && reader.NodeType == XmlNodeType.XmlDeclaration && reader.Depth == 0) 86Debug.Assert(reader.NodeType == XmlNodeType.Element, "XmlReader should be positioned at an Element");
System\IO\Packaging\PartBasedPackageProperties.cs (3)
518if (reader.NodeType == XmlNodeType.EndElement) 522if (reader.NodeType != XmlNodeType.Element) 646if (reader.NodeType != XmlNodeType.Text)
System\IO\Packaging\XmlCompatibilityReader.cs (2)
153switch (Reader.NodeType) 689_inAttribute = (Reader.NodeType == XmlNodeType.Attribute);
System\IO\Packaging\XmlWrappingReader.cs (1)
26public override XmlNodeType NodeType { get { return _reader.NodeType; } }
System\IO\Packaging\ZipPackage.cs (6)
980if ((reader.NodeType == XmlNodeType.Element) 1001if (reader.NodeType == XmlNodeType.None) 1006if (reader.NodeType == XmlNodeType.Element 1013else if (reader.NodeType == XmlNodeType.Element 1020else if (reader.NodeType == XmlNodeType.EndElement && reader.Depth == 0 && reader.Name == TypesTagName) 1226if (reader.NodeType == XmlNodeType.EndElement && elementName == reader.LocalName)
System.Private.DataContractSerialization (19)
System\Runtime\Serialization\XmlReaderDelegator.cs (1)
169get { return isEndOfEmptyElement ? XmlNodeType.EndElement : reader.NodeType; }
System\Runtime\Serialization\XmlSerializableReader.cs (3)
56if (reader.NodeType == XmlNodeType.EndElement || 57(reader.NodeType == XmlNodeType.Element && reader.IsEmptyElement)) 71public override XmlNodeType NodeType { get { return InnerReader.NodeType; } }
System\Runtime\Serialization\XmlSerializableServices.cs (1)
36while (xmlReader.Depth > startDepth && xmlReader.NodeType != XmlNodeType.EndElement)
System\Xml\ArrayHelper.cs (1)
44if (read < array.Length || reader.NodeType == XmlNodeType.EndElement)
System\Xml\XmlDictionaryReader.cs (7)
393switch (this.NodeType) 457if (this.NodeType != XmlNodeType.Element) 459if (this.NodeType == XmlNodeType.Element) 465if (this.NodeType == XmlNodeType.EndElement) 470while (IsTextNode(this.NodeType)) 560XmlNodeType nodeType = this.NodeType; 1491return _reader.NodeType;
System\Xml\XmlDictionaryWriter.cs (4)
269if (reader.NodeType == XmlNodeType.EntityReference) 387int d = (reader.NodeType == XmlNodeType.None ? -1 : reader.Depth); 390XmlNodeType nodeType = reader.NodeType; 433while (d < reader.Depth || (d == reader.Depth && reader.NodeType == XmlNodeType.EndElement));
System\Xml\XmlExceptionHelper.cs (2)
65switch (reader.NodeType) 80return SR.Format(SR.XmlFoundNodeType, reader.NodeType);
System.Private.Xml (325)
System\Xml\BinaryXml\XmlBinaryReader.cs (1)
3236_nodetype = r.NodeType;
System\Xml\Core\ReadContentAsBinaryHelper.cs (10)
159if (_reader.NodeType != XmlNodeType.Element) 202if (_reader.NodeType != XmlNodeType.Element) 242if (_reader.NodeType != XmlNodeType.EndElement) 244throw new XmlException(SR.Xml_InvalidNodeType, _reader.NodeType.ToString(), _reader as IXmlLineInfo); 276Debug.Assert(_reader.NodeType == XmlNodeType.Element); 289if (_reader.NodeType != XmlNodeType.EndElement) 291throw new XmlException(SR.Xml_InvalidNodeType, _reader.NodeType.ToString(), _reader as IXmlLineInfo); 401if (_reader.NodeType != XmlNodeType.EndElement) 403throw new XmlException(SR.Xml_InvalidNodeType, _reader.NodeType.ToString(), _reader as IXmlLineInfo); 416switch (_reader.NodeType)
System\Xml\Core\ReadContentAsBinaryHelperAsync.cs (10)
112if (_reader.NodeType != XmlNodeType.Element) 156if (_reader.NodeType != XmlNodeType.Element) 197if (_reader.NodeType != XmlNodeType.EndElement) 199throw new XmlException(SR.Xml_InvalidNodeType, _reader.NodeType.ToString(), _reader as IXmlLineInfo); 224Debug.Assert(_reader.NodeType == XmlNodeType.Element); 237if (_reader.NodeType != XmlNodeType.EndElement) 239throw new XmlException(SR.Xml_InvalidNodeType, _reader.NodeType.ToString(), _reader as IXmlLineInfo); 323if (_reader.NodeType != XmlNodeType.EndElement) 325throw new XmlException(SR.Xml_InvalidNodeType, _reader.NodeType.ToString(), _reader as IXmlLineInfo); 338switch (_reader.NodeType)
System\Xml\Core\XmlAsyncCheckReader.cs (1)
87return _coreReader.NodeType;
System\Xml\Core\XmlCharCheckingReader.cs (1)
192XmlNodeType nodeType = base.reader.NodeType;
System\Xml\Core\XmlCharCheckingReaderAsync.cs (1)
54XmlNodeType nodeType = base.reader.NodeType;
System\Xml\Core\XmlReader.cs (57)
108public virtual bool HasValue => HasValueInternal(NodeType); 693if (NodeType == XmlNodeType.Element) 704if (NodeType == XmlNodeType.EndElement) 710while (IsTextualNode(NodeType)) 728switch (NodeType) 732return NodeType; 739return NodeType; 742return NodeType; 750throw new XmlException(SR.Xml_InvalidNodeType, NodeType.ToString(), this as IXmlLineInfo); 760throw new XmlException(SR.Xml_InvalidNodeType, NodeType.ToString(), this as IXmlLineInfo); 778throw new XmlException(SR.Xml_InvalidNodeType, NodeType.ToString(), this as IXmlLineInfo); 798throw new XmlException(SR.Xml_InvalidNodeType, NodeType.ToString(), this as IXmlLineInfo); 804if (NodeType != XmlNodeType.EndElement) 806throw new XmlException(SR.Xml_UnexpectedNodeInSimpleContent, new string[] { NodeType.ToString(), "ReadElementString" }, this as IXmlLineInfo); 825throw new XmlException(SR.Xml_InvalidNodeType, NodeType.ToString(), this as IXmlLineInfo); 836if (NodeType != XmlNodeType.EndElement) 838throw new XmlException(SR.Xml_InvalidNodeType, NodeType.ToString(), this as IXmlLineInfo); 857throw new XmlException(SR.Xml_InvalidNodeType, NodeType.ToString(), this as IXmlLineInfo); 868if (NodeType != XmlNodeType.EndElement) 870throw new XmlException(SR.Xml_InvalidNodeType, NodeType.ToString(), this as IXmlLineInfo); 887throw new XmlException(SR.Xml_InvalidNodeType, NodeType.ToString(), this as IXmlLineInfo); 923if (NodeType == XmlNodeType.Element && Ref.Equal(name, Name)) 944if (NodeType == XmlNodeType.Element && Ref.Equal(localName, LocalName) && Ref.Equal(namespaceURI, NamespaceURI)) 959if (NodeType != XmlNodeType.Element) 983if (NodeType == XmlNodeType.Element && Ref.Equal(name, Name)) 988Debug.Assert(NodeType == XmlNodeType.EndElement || NodeType == XmlNodeType.None || ReadState == ReadState.Error); 1000if (NodeType != XmlNodeType.Element) 1025if (NodeType == XmlNodeType.Element && Ref.Equal(localName, LocalName) && Ref.Equal(namespaceURI, NamespaceURI)) 1030Debug.Assert(NodeType == XmlNodeType.EndElement); 1050nt = NodeType; 1077nt = NodeType; 1110if (NodeType != XmlNodeType.Attribute && NodeType != XmlNodeType.Element) 1121if (NodeType == XmlNodeType.Attribute) 1127if (NodeType == XmlNodeType.Element) 1139int d = NodeType == XmlNodeType.None ? -1 : Depth; 1142switch (NodeType) 1181if (d == Depth && NodeType == XmlNodeType.EndElement) 1193if (NodeType == XmlNodeType.EntityReference) 1213if (NodeType != XmlNodeType.Attribute && NodeType != XmlNodeType.Element) 1224if (NodeType == XmlNodeType.Attribute) 1269if (NodeType != XmlNodeType.Element) 1389if (NodeType == XmlNodeType.Element && !IsEmptyElement) 1399if (NodeType == XmlNodeType.EndElement) 1415if (NodeType != XmlNodeType.Element) 1417throw new XmlException(SR.Xml_InvalidNodeType, NodeType.ToString(), this as IXmlLineInfo); 1428return CreateReadContentAsException(methodName, NodeType, this as IXmlLineInfo); 1433return CreateReadElementContentAsException(methodName, NodeType, this as IXmlLineInfo); 1438return CanReadContentAs(NodeType); 1471switch (NodeType) 1513if (NodeType != XmlNodeType.Element) 1528XmlNodeType nodeType = NodeType; 1547if (NodeType != XmlNodeType.EndElement) 1549throw new XmlException(SR.Xml_InvalidNodeType, NodeType.ToString()); 1779XmlNodeType nt = _reader.NodeType;
System\Xml\Core\XmlReaderAsync.cs (21)
161switch (NodeType) 165return NodeType; 172return NodeType; 175return NodeType; 185if (NodeType != XmlNodeType.Attribute && NodeType != XmlNodeType.Element) 195if (NodeType == XmlNodeType.Attribute) 201if (NodeType == XmlNodeType.Element) 213int d = NodeType == XmlNodeType.None ? -1 : Depth; 216switch (NodeType) 255if (d == Depth && NodeType == XmlNodeType.EndElement) 268if (NodeType != XmlNodeType.Attribute && NodeType != XmlNodeType.Element) 278if (NodeType == XmlNodeType.Attribute) 300if (NodeType == XmlNodeType.Element && !IsEmptyElement) 310if (NodeType == XmlNodeType.EndElement) 327switch (NodeType) 369if (NodeType != XmlNodeType.Element) 384XmlNodeType nodeType = NodeType; 400if (NodeType != XmlNodeType.EndElement) 402throw new XmlException(SR.Xml_InvalidNodeType, NodeType.ToString());
System\Xml\Core\XmlSubtreeReader.cs (16)
119return _useCurNode ? _curNode.type : reader.NodeType; 432Debug.Assert(reader.NodeType == XmlNodeType.Element); 482if (reader.NodeType == XmlNodeType.EndElement || 483(reader.NodeType == XmlNodeType.Element && reader.IsEmptyElement)) 489Debug.Assert(reader.NodeType == XmlNodeType.Element && !reader.IsEmptyElement); 552if (reader.Depth == _initialDepth && reader.NodeType == XmlNodeType.Element && !reader.IsEmptyElement) 590if (reader.NodeType == XmlNodeType.Element && !reader.IsEmptyElement) 595while (reader.NodeType != XmlNodeType.EndElement && reader.Depth > _initialDepth) 601Debug.Assert(reader.NodeType == XmlNodeType.EndElement || 602reader.NodeType == XmlNodeType.Element && reader.IsEmptyElement || 609if (reader.NodeType == XmlNodeType.Element && !reader.IsEmptyElement) 933throw new XmlException(SR.Xml_InvalidNodeType, reader.NodeType.ToString(), reader as IXmlLineInfo); 1070throw new XmlException(SR.Xml_InvalidNodeType, reader.NodeType.ToString(), reader as IXmlLineInfo); 1246switch (reader.NodeType) 1391throw new XmlException(SR.Xml_InvalidNodeType, reader.NodeType.ToString(), reader as IXmlLineInfo); 1420throw new XmlException(SR.Xml_InvalidNodeType, reader.NodeType.ToString(), reader as IXmlLineInfo);
System\Xml\Core\XmlSubtreeReaderAsync.cs (12)
45if (reader.NodeType == XmlNodeType.EndElement || 46(reader.NodeType == XmlNodeType.Element && reader.IsEmptyElement)) 52Debug.Assert(reader.NodeType == XmlNodeType.Element && !reader.IsEmptyElement); 116if (reader.NodeType == XmlNodeType.Element && !reader.IsEmptyElement) 121while (reader.NodeType != XmlNodeType.EndElement && reader.Depth > _initialDepth) 127Debug.Assert(reader.NodeType == XmlNodeType.EndElement || 128reader.NodeType == XmlNodeType.Element && reader.IsEmptyElement || 135if (reader.NodeType == XmlNodeType.Element && !reader.IsEmptyElement) 339throw new XmlException(SR.Xml_InvalidNodeType, reader.NodeType.ToString(), reader as IXmlLineInfo); 476throw new XmlException(SR.Xml_InvalidNodeType, reader.NodeType.ToString(), reader as IXmlLineInfo); 575throw new XmlException(SR.Xml_InvalidNodeType, reader.NodeType.ToString(), reader as IXmlLineInfo); 604throw new XmlException(SR.Xml_InvalidNodeType, reader.NodeType.ToString(), reader as IXmlLineInfo);
System\Xml\Core\XmlTextReaderImpl.cs (1)
1566if (_outerReader.NodeType == XmlNodeType.EntityReference &&
System\Xml\Core\XmlValidatingReaderImpl.cs (8)
291return _coreReader.NodeType; 754if (_outerReader.NodeType == XmlNodeType.EntityReference && _parsingFunction != ParsingFunction.ResolveEntityInternally) 952switch (_outerReader.NodeType) 974XmlNodeType type = _outerReader.NodeType; 983if (_outerReader.NodeType != XmlNodeType.EndElement) 985throw new XmlException(SR.Xml_InvalidNodeType, _outerReader.NodeType.ToString()); 1052Debug.Assert(_coreReader.NodeType == XmlNodeType.EntityReference); 1096switch (_coreReader.NodeType)
System\Xml\Core\XmlValidatingReaderImplAsync.cs (1)
193Debug.Assert(_coreReader.NodeType == XmlNodeType.EntityReference);
System\Xml\Core\XmlWrappingReader.cs (1)
34public override XmlNodeType NodeType { get { return reader.NodeType; } }
System\Xml\Core\XmlWriter.cs (6)
317if (reader.NodeType is XmlNodeType.Element or XmlNodeType.XmlDeclaration) 325else if (reader.NodeType != XmlNodeType.Attribute) 340if (reader.NodeType == XmlNodeType.EntityReference) 363int d = reader.NodeType == XmlNodeType.None ? -1 : reader.Depth; 366switch (reader.NodeType) 418} while (reader.Read() && (d < reader.Depth || (d == reader.Depth && reader.NodeType == XmlNodeType.EndElement)));
System\Xml\Core\XmlWriterAsync.cs (9)
238if (reader.NodeType is XmlNodeType.Element or XmlNodeType.XmlDeclaration) 246else if (reader.NodeType != XmlNodeType.Attribute) 261if (reader.NodeType == XmlNodeType.EntityReference) 299int d = reader.NodeType == XmlNodeType.None ? -1 : reader.Depth; 302switch (reader.NodeType) 352} while (reader.Read() && (d < reader.Depth || (d == reader.Depth && reader.NodeType == XmlNodeType.EndElement))); 361int d = reader.NodeType == XmlNodeType.None ? -1 : reader.Depth; 364switch (reader.NodeType) 415} while (await reader.ReadAsync().ConfigureAwait(false) && (d < reader.Depth || (d == reader.Depth && reader.NodeType == XmlNodeType.EndElement)));
System\Xml\Core\XsdCachingReader.cs (12)
81if (_coreReader.NodeType == XmlNodeType.Element) 83ValidatingReaderNodeData element = AddContent(_coreReader.NodeType); 411switch (_coreReader.NodeType) 419recordedNode = AddContent(_coreReader.NodeType); 430recordedNode = AddContent(_coreReader.NodeType); 453if (_coreReader.NodeType != XmlNodeType.Element || _readAhead) 483Debug.Assert(_coreReader.NodeType == XmlNodeType.EndElement || (_coreReader.NodeType == XmlNodeType.Element && _coreReader.IsEmptyElement)); 496Debug.Assert(_coreReader.NodeType == XmlNodeType.EndElement || (_coreReader.NodeType == XmlNodeType.Element && _coreReader.IsEmptyElement)); 545if (_coreReader.NodeType != XmlNodeType.EndElement && !_readAhead) 692Debug.Assert(_coreReader.NodeType == XmlNodeType.Element);
System\Xml\Core\XsdCachingReaderAsync.cs (5)
43switch (_coreReader.NodeType) 51recordedNode = AddContent(_coreReader.NodeType); 62recordedNode = AddContent(_coreReader.NodeType); 85if (_coreReader.NodeType != XmlNodeType.Element || _readAhead) 111if (_coreReader.NodeType != XmlNodeType.EndElement && !_readAhead)
System\Xml\Core\XsdValidatingReader.cs (7)
224XmlNodeType nodeType = _coreReader.NodeType; 2005switch (_coreReader.NodeType) 2333if (_coreReader.NodeType == XmlNodeType.Element) 2527switch (_coreReader.NodeType) 2587Debug.Assert(_coreReader.NodeType == XmlNodeType.EndElement); 2595switch (_coreReader.NodeType) 2656switch (_coreReader.NodeType)
System\Xml\Core\XsdValidatingReaderAsync.cs (3)
500switch (_coreReader.NodeType) 656if (_coreReader.NodeType == XmlNodeType.Element) 865switch (_coreReader.NodeType)
System\Xml\Dom\XmlLoader.cs (13)
106switch (r.NodeType) 222throw UnexpectedNodeType(r.NodeType); 251Debug.Assert(_reader!.NodeType == XmlNodeType.Attribute); 269switch (r.NodeType) 289throw UnexpectedNodeType(r.NodeType); 326switch (r.NodeType) 348throw UnexpectedNodeType(r.NodeType); 358Debug.Assert(_reader!.NodeType == XmlNodeType.EntityReference); 363while (_reader.Read() && _reader.NodeType != XmlNodeType.EndEntity) 381Debug.Assert(_reader!.NodeType == XmlNodeType.XmlDeclaration); 419Debug.Assert(_reader!.NodeType == XmlNodeType.DocumentType); 463switch (r.NodeType) 546throw UnexpectedNodeType(_reader!.NodeType);
System\Xml\Schema\Inference\Infer.cs (32)
186while (_xtr.NodeType != XmlNodeType.Element && _xtr.Read()) ; 189if (_xtr.NodeType == XmlNodeType.Element) 693if (_xtr.NodeType == XmlNodeType.Whitespace) 697if (_xtr.NodeType == XmlNodeType.EntityReference) 701} while ((!_xtr.EOF) && (_xtr.NodeType != XmlNodeType.EndElement) && (_xtr.NodeType != XmlNodeType.CDATA) && (_xtr.NodeType != XmlNodeType.Element) && (_xtr.NodeType != XmlNodeType.Text)); 703if (_xtr.NodeType == XmlNodeType.EndElement) 768while (!_xtr.EOF && (_xtr.NodeType != XmlNodeType.EndElement)) 772if ((_xtr.NodeType == XmlNodeType.Text) || (_xtr.NodeType == XmlNodeType.CDATA)) //node can be simple type, complex with simple content or complex with mixed content 782do { _xtr.Read(); } while ((!_xtr.EOF) && ((_xtr.NodeType == XmlNodeType.CDATA) || (_xtr.NodeType == XmlNodeType.Text) || (_xtr.NodeType == XmlNodeType.Comment) || (_xtr.NodeType == XmlNodeType.ProcessingInstruction) || (_xtr.NodeType == XmlNodeType.Whitespace) || (_xtr.NodeType == XmlNodeType.SignificantWhitespace) || (_xtr.NodeType == XmlNodeType.XmlDeclaration))); 784if (_xtr.NodeType == XmlNodeType.EndElement) 791if ((_xtr.NodeType == XmlNodeType.Text) && (iChildNumber == 1)) 822if (_xtr.NodeType == XmlNodeType.Text) 853if (_xtr.NodeType == XmlNodeType.Text) 863else if (_xtr.NodeType == XmlNodeType.Text) 889else if (_xtr.NodeType == XmlNodeType.Element) 944else if (_xtr.NodeType == XmlNodeType.Text) 952if (_xtr.NodeType == XmlNodeType.EntityReference) 964} while ((!_xtr.EOF) && (_xtr.NodeType != XmlNodeType.EndElement) && (_xtr.NodeType != XmlNodeType.CDATA) && (_xtr.NodeType != XmlNodeType.Element) && (_xtr.NodeType != XmlNodeType.Text)); 1202Debug.Assert(_xtr!.NodeType == XmlNodeType.Attribute);
System\Xml\Schema\Parser.cs (15)
70while (reader.NodeType != XmlNodeType.Element && reader.Read()) { } 176else if (_reader.NodeType == XmlNodeType.Element) 222else if (_reader.NodeType == XmlNodeType.Text) 229else if (_reader.NodeType == XmlNodeType.EntityReference || 230_reader.NodeType == XmlNodeType.SignificantWhitespace || 231_reader.NodeType == XmlNodeType.CDATA) 235else if (_reader.NodeType == XmlNodeType.EndElement) 274switch (_reader!.NodeType) 333Debug.Assert(_reader!.NodeType == XmlNodeType.Element); 418Debug.Assert(_reader!.NodeType == XmlNodeType.Attribute); 426switch (r.NodeType) 435throw XmlLoader.UnexpectedNodeType(r.NodeType); 444Debug.Assert(_reader!.NodeType == XmlNodeType.EntityReference); 455switch (_reader.NodeType) 470throw XmlLoader.UnexpectedNodeType(_reader.NodeType);
System\Xml\Schema\ParserAsync.cs (1)
30while (reader.NodeType != XmlNodeType.Element && await reader.ReadAsync().ConfigureAwait(false)) { }
System\Xml\Serialization\PrimitiveXmlSerializers.cs (20)
252if (Reader.NodeType == System.Xml.XmlNodeType.Element) 281if (Reader.NodeType == System.Xml.XmlNodeType.Element) 305if (Reader.NodeType == System.Xml.XmlNodeType.Element) 329if (Reader.NodeType == System.Xml.XmlNodeType.Element) 353if (Reader.NodeType == System.Xml.XmlNodeType.Element) 377if (Reader.NodeType == System.Xml.XmlNodeType.Element) 401if (Reader.NodeType == System.Xml.XmlNodeType.Element) 425if (Reader.NodeType == System.Xml.XmlNodeType.Element) 449if (Reader.NodeType == System.Xml.XmlNodeType.Element) 473if (Reader.NodeType == System.Xml.XmlNodeType.Element) 503if (Reader.NodeType == System.Xml.XmlNodeType.Element) 527if (Reader.NodeType == System.Xml.XmlNodeType.Element) 551if (Reader.NodeType == System.Xml.XmlNodeType.Element) 575if (Reader.NodeType == System.Xml.XmlNodeType.Element) 599if (Reader.NodeType == System.Xml.XmlNodeType.Element) 623if (Reader.NodeType == System.Xml.XmlNodeType.Element) 652if (Reader.NodeType == System.Xml.XmlNodeType.Element) 676if (Reader.NodeType == System.Xml.XmlNodeType.Element) 706if (Reader.NodeType == System.Xml.XmlNodeType.Element) 730if (Reader.NodeType == System.Xml.XmlNodeType.Element)
System\Xml\Serialization\ReflectionXmlSerializationReader.cs (18)
105while (Reader.NodeType != XmlNodeType.EndElement && Reader.NodeType != XmlNodeType.None) 266while (Reader.NodeType != XmlNodeType.EndElement && Reader.NodeType != XmlNodeType.None) 325while (Reader.NodeType == XmlNodeType.Element) 386while (Reader.NodeType != XmlNodeType.EndElement && Reader.NodeType != XmlNodeType.None) 480if (Reader.NodeType == XmlNodeType.Element) 533while (Reader.NodeType != XmlNodeType.EndElement && Reader.NodeType != XmlNodeType.None) 678if ((Reader.NodeType == XmlNodeType.Text || 679Reader.NodeType == XmlNodeType.CDATA || 680Reader.NodeType == XmlNodeType.Whitespace || 681Reader.NodeType == XmlNodeType.SignificantWhitespace)) 1151while (Reader.NodeType != XmlNodeType.EndElement && Reader.NodeType != XmlNodeType.None) 1380while (Reader.NodeType != XmlNodeType.EndElement && Reader.NodeType != XmlNodeType.None)
System\Xml\Serialization\XmlSerializationReader.cs (20)
821while (_r.NodeType != XmlNodeType.EndElement) 898if (_r.NodeType != XmlNodeType.EndElement) 900while (_r.NodeType != XmlNodeType.EndElement) 1204if (_r.NodeType == XmlNodeType.None || _r.NodeType == XmlNodeType.Whitespace) 1209if (_r.NodeType == XmlNodeType.EndElement) 1215else if (_r.NodeType == XmlNodeType.Attribute && _events.OnUnknownAttribute == null) 1219else if (_r.NodeType == XmlNodeType.Element && _events.OnUnknownElement == null) 1272_r.NodeType switch 1406while (_r.NodeType == XmlNodeType.Whitespace) _r.Skip(); 1407if (_r.NodeType == XmlNodeType.None) _r.Skip(); 1408if (_r.NodeType == XmlNodeType.EndElement && _r.LocalName == name && _r.NamespaceURI == ns) 1670while (_r.NodeType != XmlNodeType.EndElement) 1686while (_r.NodeType != XmlNodeType.EndElement) 1762while (_r.NodeType != XmlNodeType.EndElement && _r.NodeType != XmlNodeType.None) 1867while (_r.NodeType == XmlNodeType.Whitespace) _r.Skip(); 1868if (_r.NodeType == XmlNodeType.None) _r.Skip(); 1882if (Reader.NodeType == XmlNodeType.Attribute) 1943while (Reader.NodeType != System.Xml.XmlNodeType.EndElement)
System\Xml\XPath\XPathDocument.cs (1)
192switch (reader.NodeType)
System\Xml\XPath\XPathNavigator.cs (1)
2042switch (reader.NodeType)
System\Xml\Xsl\Xslt\XsltInput.cs (21)
183rec.start = new Location(_readerLineInfo.LineNumber, _readerLineInfo.LinePosition - PositionAdjustment(_reader.NodeType)); 191rec.end = new Location(_readerLineInfo.LineNumber, _readerLineInfo.LinePosition - PositionAdjustment(_reader.NodeType)); 202_reader.NodeType == XmlNodeType.Whitespace || _reader.NodeType == XmlNodeType.SignificantWhitespace || 203_reader.NodeType == XmlNodeType.Text || _reader.NodeType == XmlNodeType.CDATA 213bool isCDATA = (_reader.NodeType == XmlNodeType.CDATA); 244Debug.Assert(_reader.NodeType == XmlNodeType.EntityReference); 258Debug.Assert(_reader.NodeType == XmlNodeType.Text || _reader.NodeType == XmlNodeType.Whitespace || _reader.NodeType == XmlNodeType.SignificantWhitespace); 261Debug.Assert(_reader.NodeType == XmlNodeType.EndEntity); 273Debug.Assert(_reader.NodeType == XmlNodeType.Attribute, "reader.NodeType == XmlNodeType.Attribute"); 303int correction = (_reader.NodeType == XmlNodeType.EntityReference) ? -2 : -1; 315switch (_reader.NodeType) 323Debug.Assert(_reader.NodeType == XmlNodeType.Text, "Unexpected node type inside attribute value"); 332Debug.Assert(_reader.NodeType != XmlNodeType.EntityReference); 333int correction = ((_reader.NodeType == XmlNodeType.EndEntity) ? 1 : lastText.Length) + 1; 384switch (_reader.NodeType) 452switch (_reader.NodeType) 488Debug.Assert(_reader.NodeType == XmlNodeType.Element);
System.Private.Xml.Linq (16)
System\Xml\Linq\XContainer.cs (8)
903switch (r.NodeType) 950throw new InvalidOperationException(SR.Format(SR.InvalidOperation_UnexpectedNodeType, r.NodeType)); 957switch (r.NodeType) 1006throw new InvalidOperationException(SR.Format(SR.InvalidOperation_UnexpectedNodeType, r.NodeType)); 1016switch (r.NodeType) 1104throw new InvalidOperationException(SR.Format(SR.InvalidOperation_UnexpectedNodeType, r.NodeType)); 1130switch (r.NodeType) 1220throw new InvalidOperationException(SR.Format(SR.InvalidOperation_UnexpectedNodeType, r.NodeType));
System\Xml\Linq\XDocument.cs (1)
499if (reader.NodeType == XmlNodeType.XmlDeclaration)
System\Xml\Linq\XElement.cs (3)
811if (reader.MoveToContent() != XmlNodeType.Element) throw new InvalidOperationException(SR.Format(SR.InvalidOperation_ExpectedNodeType, XmlNodeType.Element, reader.NodeType)); 846if (await reader.MoveToContentAsync().ConfigureAwait(false) != XmlNodeType.Element) throw new InvalidOperationException(SR.Format(SR.InvalidOperation_ExpectedNodeType, XmlNodeType.Element, reader.NodeType)); 1883if (reader.MoveToContent() != XmlNodeType.Element) throw new InvalidOperationException(SR.Format(SR.InvalidOperation_ExpectedNodeType, XmlNodeType.Element, reader.NodeType));
System\Xml\Linq\XNode.cs (4)
431switch (reader.NodeType) 448throw new InvalidOperationException(SR.Format(SR.InvalidOperation_UnexpectedNodeType, reader.NodeType)); 479switch (reader.NodeType) 509throw new InvalidOperationException(SR.Format(SR.InvalidOperation_UnexpectedNodeType, reader.NodeType));
System.ServiceModel.Syndication (2)
System\ServiceModel\Syndication\SyndicationFeedFormatter.cs (2)
601switch (reader.NodeType) 616return SR.Format(SR.XmlFoundNodeType, reader.NodeType);
System.Xaml (7)
src\Microsoft.DotNet.Wpf\src\Shared\System\Windows\Markup\XmlCompatibilityReader.cs (2)
170switch (Reader.NodeType) 744_inAttribute = (Reader.NodeType == XmlNodeType.Attribute);
src\Microsoft.DotNet.Wpf\src\Shared\System\Windows\Markup\XmlWrappingReader.cs (1)
41public override XmlNodeType NodeType { get { return _reader.NodeType; } }
System\Xaml\Parser\XamlScanner.cs (4)
177XmlNodeType xmlNodeType = _xmlReader.NodeType; 245Debug.Assert(_xmlReader.NodeType == XmlNodeType.Element); 281Debug.Assert(_xmlReader.NodeType == XmlNodeType.Element); 423Debug.Assert(_xmlReader.NodeType == XmlNodeType.Element);