24 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)
3323public 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.ServiceModel.Primitives (2)
Internals\System\Xml\XmlMtomReader.cs (2)
744public override XmlNodeType NodeType 1165public 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; } }
846 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 (13)
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"))
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;
PresentationBuildTasks (15)
MS\Internal\MarkupCompiler\MarkupCompiler.cs (1)
790XmlNodeType currNodeType = xmlReader.NodeType;
MS\Internal\MarkupCompiler\ParserExtension.cs (2)
419string attrName = (xmlReader.NodeType == XmlNodeType.Attribute) ? xmlReader.Name : null; 718while (!xamlDefTagNode.IsEmptyElement && xamlDefTagNode.XmlReader.NodeType != XmlNodeType.EndElement)
src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\XamlReaderHelper.cs (9)
388switch (XmlReader.NodeType) 1247switch (XmlReader.NodeType) 1330XmlReader.NodeType.ToString()); 2076CompileBamlTag(XmlReader.NodeType, ref endTagHasBeenRead); 2092switch (XmlReader.NodeType) 2098CompileText(XmlReader.NodeType, XmlReader.Value); 2158CompileText(XmlReader.NodeType, XmlReader.Value); 3809CompileText(XmlReader.NodeType, XmlReader.Value); 52270 == XmlReader.Depth && XmlReader.NodeType == XmlNodeType.None))
src\Microsoft.DotNet.Wpf\src\Shared\System\Windows\Markup\XmlCompatibilityReader.cs (2)
172switch (Reader.NodeType) 746_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)
211if (_reader.NodeType == XmlNodeType.Attribute) 218if (_reader.NodeType == XmlNodeType.Attribute) 301switch (_reader.NodeType) 313return _reader.NodeType; 415if (_reader.NodeType == XmlNodeType.Element && _reader.NamespaceURI == CompositeFontNamespace) 581if (_reader.NodeType == XmlNodeType.Element && _reader.NamespaceURI == CompositeFontNamespace) 829if (_reader.NodeType == XmlNodeType.Element && _reader.NamespaceURI == CompositeFontNamespace)
PresentationFramework (15)
MS\Internal\IO\Packaging\XamlFilter.cs (1)
398switch (_xamlReader.NodeType)
System\Windows\Annotations\Annotation.cs (6)
290while (!(XmlNodeType.EndElement == reader.NodeType && AnnotationXmlConstants.Elements.Annotation == reader.LocalName)) 299while (!(AnnotationXmlConstants.Elements.AnchorCollection == reader.LocalName && XmlNodeType.EndElement == reader.NodeType)) 314while (!(AnnotationXmlConstants.Elements.CargoCollection == reader.LocalName && XmlNodeType.EndElement == reader.NodeType)) 329while (!(AnnotationXmlConstants.Elements.AuthorCollection == reader.LocalName && XmlNodeType.EndElement == reader.NodeType)) 331if (!(AnnotationXmlConstants.Elements.StringAuthor == reader.LocalName && XmlNodeType.Element == reader.NodeType)) 523if (reader.NodeType == XmlNodeType.Attribute)
System\Windows\Annotations\AnnotationResource.cs (2)
179while (!(AnnotationXmlConstants.Elements.Resource == reader.LocalName && XmlNodeType.EndElement == reader.NodeType)) 191else if (XmlNodeType.Element == reader.NodeType)
System\Windows\Annotations\LocatorGroup.cs (1)
140while (!(AnnotationXmlConstants.Elements.ContentLocatorGroup == reader.LocalName && XmlNodeType.EndElement == reader.NodeType))
System\Windows\Annotations\LocatorPartList.cs (4)
225while (!(AnnotationXmlConstants.Elements.ContentLocator == reader.LocalName && XmlNodeType.EndElement == reader.NodeType)) 227if (XmlNodeType.Element != reader.NodeType) 243while (!(XmlNodeType.EndElement == reader.NodeType && part.PartType.Name == reader.LocalName)) 286if (!(XmlNodeType.EndElement == reader.NodeType && AnnotationXmlConstants.Elements.Item == reader.LocalName))
System\Windows\Documents\FixedFindEngine.cs (1)
390switch (xmlReader.NodeType)
ReachFramework (5)
Packaging\XpsFixedDocumentReaderWriter.cs (2)
1097if( reader.NodeType == XmlNodeType.Element && 1106if( reader.NodeType == XmlNodeType.EndElement &&
Packaging\XPSSignatureDefinition.cs (3)
420if( reader.NodeType != XmlNodeType.Element || 436switch( reader.NodeType ) 581switch (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)
428if (type == typeof(string) && xmlReader.NodeType == XmlNodeType.Element && xmlReader.IsEmptyElement)
System\Data\DataSet.cs (23)
201if (reader.NodeType == XmlNodeType.Element) 1581if (reader.NodeType == XmlNodeType.Element) 1675if (reader.NodeType == XmlNodeType.Element) 1682if (reader.NodeType == XmlNodeType.Element) 1770while (!reader.EOF && reader.NodeType != XmlNodeType.EndElement && reader.NodeType != XmlNodeType.Element && reader.Depth > depth) 1774return (reader.NodeType == XmlNodeType.Element); 1779while (!reader.EOF && reader.NodeType != XmlNodeType.EndElement && reader.NodeType != XmlNodeType.Element) 1786while (reader.NodeType == XmlNodeType.Whitespace) 1790if (reader.NodeType == XmlNodeType.None) 1794else if (reader.NodeType == XmlNodeType.EndElement) 1830while (reader.NodeType == XmlNodeType.Whitespace) 2081if (reader.NodeType == XmlNodeType.Element) 2086if (reader.NodeType == XmlNodeType.Element) 2186while (!reader.EOF && reader.NodeType == XmlNodeType.Whitespace) 2188if (reader.NodeType != XmlNodeType.Element) 2446if (reader.NodeType == XmlNodeType.Whitespace) 2461if (reader.NodeType == XmlNodeType.Whitespace) 2472if (reader.NodeType == XmlNodeType.Whitespace) 2477Debug.Assert(reader.NodeType != XmlNodeType.Whitespace, "Should not be on Whitespace node"); 2586if ((mode != XmlReadMode.Fragment) && (reader.NodeType == XmlNodeType.Element)) 2594if (reader.NodeType == XmlNodeType.Element)
System\Data\DataTable.cs (10)
5755if (reader.NodeType == XmlNodeType.Element) 5981if ((mode != XmlReadMode.Fragment) && (reader.NodeType == XmlNodeType.Element)) 5998if (reader.NodeType == XmlNodeType.Element) 6237while (reader.NodeType == XmlNodeType.Whitespace) 6241if (reader.NodeType == XmlNodeType.None) 6245else if (reader.NodeType == XmlNodeType.EndElement) 6259while (!reader.EOF && reader.NodeType != XmlNodeType.EndElement && reader.NodeType != XmlNodeType.Element && reader.Depth > depth) 6263return (reader.NodeType == XmlNodeType.Element); 6298if (reader.NodeType == XmlNodeType.Whitespace)
System\Data\XmlDataLoader.cs (5)
626if (reader.NodeType != XmlNodeType.Element) 738switch (_dataReader.NodeType) 966switch (_dataReader.NodeType) 1235switch (_dataReader.NodeType) 1247while (_dataReader.Read() && entryDepth < _dataReader.Depth && IsTextLikeNode(_dataReader.NodeType))
System\Data\XMLDiffLoader.cs (11)
199if (XmlNodeType.Element == ssync.NodeType) 210while ((ssync.NodeType == XmlNodeType.EndElement) && (iSsyncDepth < ssync.Depth)) 254if (XmlNodeType.Element == ssync.NodeType) 264while ((ssync.NodeType == XmlNodeType.EndElement) && (iSsyncDepth < ssync.Depth)) 352if (currentDepth == iRowDepth && row.NodeType == XmlNodeType.EndElement) 377while ((row.NodeType != XmlNodeType.EndElement) && (row.LocalName != ln) && (row.NamespaceURI != ns)) 430if (row.NodeType == XmlNodeType.Text || row.NodeType == XmlNodeType.Whitespace || row.NodeType == XmlNodeType.SignificantWhitespace) 454while (reader.NodeType == XmlNodeType.Whitespace || reader.NodeType == XmlNodeType.SignificantWhitespace)
System\Data\xmlsaver.cs (1)
3327return _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)
120while (Reader.NodeType != XmlNodeType.EndElement && Reader.NodeType != XmlNodeType.None) 282while (Reader.NodeType != XmlNodeType.EndElement && Reader.NodeType != XmlNodeType.None) 342while (Reader.NodeType == XmlNodeType.Element) 403while (Reader.NodeType != XmlNodeType.EndElement && Reader.NodeType != XmlNodeType.None) 501if (Reader.NodeType == XmlNodeType.Element) 556while (Reader.NodeType != XmlNodeType.EndElement && Reader.NodeType != XmlNodeType.None) 703if ((Reader.NodeType == XmlNodeType.Text || 704Reader.NodeType == XmlNodeType.CDATA || 705Reader.NodeType == XmlNodeType.Whitespace || 706Reader.NodeType == XmlNodeType.SignificantWhitespace)) 1183while (Reader.NodeType != XmlNodeType.EndElement && Reader.NodeType != XmlNodeType.None) 1421while (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 1404while (_r.NodeType == XmlNodeType.Whitespace) _r.Skip(); 1405if (_r.NodeType == XmlNodeType.None) _r.Skip(); 1406if (_r.NodeType == XmlNodeType.EndElement && _r.LocalName == name && _r.NamespaceURI == ns) 1667while (_r.NodeType != XmlNodeType.EndElement) 1683while (_r.NodeType != XmlNodeType.EndElement) 1757while (_r.NodeType != XmlNodeType.EndElement && _r.NodeType != XmlNodeType.None) 1856while (_r.NodeType == XmlNodeType.Whitespace) _r.Skip(); 1857if (_r.NodeType == XmlNodeType.None) _r.Skip(); 1871if (Reader.NodeType == XmlNodeType.Attribute) 1932while (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.Primitives (63)
Extensions\XmlReaderExtensions.cs (2)
16throw new XmlException(SRP.Format(SRP.Xml_InvalidNodeType, reader.NodeType.ToString()), null, lineInfo?.LineNumber ?? 0, lineInfo?.LinePosition ?? 0); 27throw new XmlException(SRP.Format(SRP.Xml_InvalidNodeType, reader.NodeType.ToString()), null, lineInfo?.LineNumber ?? 0, lineInfo?.LinePosition ?? 0);
Internals\System\Xml\XmlMtomReader.cs (3)
332if (_xmlReader.NodeType == XmlNodeType.Element) 748return _xmlReader.NodeType; 1169return (_readState == ReadState.Interactive) ? _nodeType : _parentReader.NodeType;
System\ServiceModel\Channels\AddressHeader.cs (2)
346Fx.Assert(reader.NodeType == XmlNodeType.Element, ""); 392while (reader.NodeType != XmlNodeType.EndElement)
System\ServiceModel\Channels\BinaryMessageEncoder.cs (1)
1599while (reader.NodeType != XmlNodeType.EndElement)
System\ServiceModel\Channels\BodyWriter.cs (1)
168while (reader.NodeType != XmlNodeType.EndElement)
System\ServiceModel\Channels\Message.cs (10)
644if (reader.NodeType != XmlNodeType.Element) 649if (reader.NodeType == XmlNodeType.Element) 654else if (reader.NodeType == XmlNodeType.EndElement) 1267while (bodyReader.NodeType != XmlNodeType.EndElement && !bodyReader.EOF) 1333if (reader.NodeType != XmlNodeType.Element) 1369if (reader.NodeType != XmlNodeType.Element) 1687if (reader.NodeType != XmlNodeType.Element) 1704if (reader.NodeType != XmlNodeType.Element) 1717if (reader.NodeType != XmlNodeType.Element) 1743while (reader.NodeType != XmlNodeType.EndElement)
System\ServiceModel\Channels\MessageFault.cs (3)
197if (reader.NodeType != XmlNodeType.EndElement && !reader.EOF) 654while (r.NodeType != XmlNodeType.EndElement) 687while (r.NodeType != XmlNodeType.EndElement)
System\ServiceModel\Channels\MessageHeader.cs (1)
502while (reader.NodeType != XmlNodeType.EndElement)
System\ServiceModel\Channels\MessageHeaders.cs (6)
486if (reader.NodeType != XmlNodeType.Element) 886if (reader.NodeType == XmlNodeType.Element) 895if (reader.NodeType == XmlNodeType.Element) 919if (reader.NodeType != XmlNodeType.Element) 948if (reader.NodeType == XmlNodeType.EndElement) 1853while (reader.NodeType != XmlNodeType.EndElement)
System\ServiceModel\Channels\WsrmFault.cs (2)
723if ((headerReader.NodeType != XmlNodeType.Element) 748if ((headerReader.NodeType == XmlNodeType.Element)
System\ServiceModel\Channels\WsrmMessageInfo.cs (8)
1145SRP.Format(SRP.UnexpectedXmlChildNode, reader.Name, reader.NodeType, 1158SRP.Format(SRP.UnexpectedXmlChildNode, reader.Name, reader.NodeType, 1173SRP.Format(SRP.UnexpectedXmlChildNode, reader.Name, reader.NodeType, 1186SRP.Format(SRP.UnexpectedXmlChildNode, reader.Name, reader.NodeType, 1213SRP.Format(SRP.UnexpectedXmlChildNode, reader.Name, reader.NodeType, 1234SRP.Format(SRP.UnexpectedXmlChildNode, reader.Name, reader.NodeType, 1240SRP.Format(SRP.UnexpectedXmlChildNode, reader.Name, reader.NodeType, 1251SRP.Format(SRP.UnexpectedXmlChildNode, reader.Name, reader.NodeType,
System\ServiceModel\Dispatcher\DataContractSerializerOperationFormatter.cs (1)
436throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new SerializationException(SRP.Format(SRP.SFxInvalidMessageBody, messageInfo.WrapperName, messageInfo.WrapperNamespace, reader.NodeType, reader.Name, reader.NamespaceURI)));
System\ServiceModel\Dispatcher\FaultFormatter.cs (1)
157if (detailReader.NodeType != XmlNodeType.EndElement && !detailReader.EOF)
System\ServiceModel\Dispatcher\PrimitiveOperationFormatter.cs (2)
579throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new SerializationException(SRP.Format(SRP.SFxInvalidMessageBody, _requestWrapperName, _requestWrapperNamespace, reader.NodeType, reader.Name, reader.NamespaceURI))); 604throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new SerializationException(SRP.Format(SRP.SFxInvalidMessageBody, _responseWrapperName, _responseWrapperNamespace, reader.NodeType, reader.Name, reader.NamespaceURI)));
System\ServiceModel\Dispatcher\StreamFormatter.cs (1)
367if (_reader.NodeType == XmlNodeType.EndElement)
System\ServiceModel\Dispatcher\XmlSerializerOperationFormatter.cs (1)
455if (reader.NodeType == XmlNodeType.EndElement)
System\ServiceModel\EndpointAddress.cs (3)
531else if (reader.NodeType != XmlNodeType.Element) 879while (reader.NodeType != XmlNodeType.EndElement && !reader.EOF) 934return (reader.NodeType == XmlNodeType.EndElement || reader.EOF);
System\ServiceModel\EndpointIdentity.cs (1)
185else if (reader.NodeType == XmlNodeType.Element)
System\ServiceModel\Security\SecurityAppliedMessage.cs (2)
128while (reader.NodeType != XmlNodeType.EndElement) 155while (reader.NodeType != XmlNodeType.EndElement)
System\ServiceModel\Security\SecurityVerifiedMessage.cs (6)
210if (reader.NodeType != XmlNodeType.Element) 219if (reader.NodeType != XmlNodeType.Element) 227if (reader.NodeType != XmlNodeType.Element) 250if (reader.NodeType != XmlNodeType.Element) 380while (reader.NodeType != XmlNodeType.EndElement) 465if (reader.NodeType != XmlNodeType.Element)
System\ServiceModel\Security\WSSecureConversation.cs (1)
412Fx.Assert(reader.NodeType == XmlNodeType.Element, "");
System\ServiceModel\Security\XmlHelper.cs (5)
129while (reader.NodeType == XmlNodeType.Whitespace || reader.NodeType == XmlNodeType.SignificantWhitespace) 155if (reader.NodeType == XmlNodeType.Comment) 159else if (reader.NodeType == XmlNodeType.Whitespace) 211throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(SRP.Format(SRP.UnexpectedXmlChildNode, r.Name, r.NodeType, parentName)));
System.ServiceModel.Syndication (2)
System\ServiceModel\Syndication\SyndicationFeedFormatter.cs (2)
601switch (reader.NodeType) 616return SR.Format(SR.XmlFoundNodeType, reader.NodeType);
System.Web.Services.Description (273)
System\Web\Services\Description\ServiceDescriptionSerializer.cs (273)
4824if (Reader.NodeType == Xml.XmlNodeType.Element) { 4902while (Reader.NodeType != Xml.XmlNodeType.EndElement && Reader.NodeType != Xml.XmlNodeType.None) { 4903if (Reader.NodeType == Xml.XmlNodeType.Element) { 5033while (Reader.NodeType != Xml.XmlNodeType.EndElement && Reader.NodeType != Xml.XmlNodeType.None) { 5034if (Reader.NodeType == Xml.XmlNodeType.Element) { 5123while (Reader.NodeType != Xml.XmlNodeType.EndElement && Reader.NodeType != Xml.XmlNodeType.None) { 5124if (Reader.NodeType == Xml.XmlNodeType.Element) { 5220while (Reader.NodeType != Xml.XmlNodeType.EndElement && Reader.NodeType != Xml.XmlNodeType.None) { 5221if (Reader.NodeType == Xml.XmlNodeType.Element) { 5280while (Reader.NodeType != Xml.XmlNodeType.EndElement && Reader.NodeType != Xml.XmlNodeType.None) { 5281if (Reader.NodeType == Xml.XmlNodeType.Element) { 5340while (Reader.NodeType != Xml.XmlNodeType.EndElement && Reader.NodeType != Xml.XmlNodeType.None) { 5341if (Reader.NodeType == Xml.XmlNodeType.Element) { 5414while (Reader.NodeType != Xml.XmlNodeType.EndElement && Reader.NodeType != Xml.XmlNodeType.None) { 5415if (Reader.NodeType == Xml.XmlNodeType.Element) { 5531while (Reader.NodeType != Xml.XmlNodeType.EndElement && Reader.NodeType != Xml.XmlNodeType.None) { 5532if (Reader.NodeType == Xml.XmlNodeType.Element) { 5655while (Reader.NodeType != Xml.XmlNodeType.EndElement && Reader.NodeType != Xml.XmlNodeType.None) { 5656if (Reader.NodeType == Xml.XmlNodeType.Element) { 5754while (Reader.NodeType != Xml.XmlNodeType.EndElement && Reader.NodeType != Xml.XmlNodeType.None) { 5755if (Reader.NodeType == Xml.XmlNodeType.Element) { 5834while (Reader.NodeType != Xml.XmlNodeType.EndElement && Reader.NodeType != Xml.XmlNodeType.None) { 5835if (Reader.NodeType == Xml.XmlNodeType.Element) { 5911while (Reader.NodeType != Xml.XmlNodeType.EndElement && Reader.NodeType != Xml.XmlNodeType.None) { 5912if (Reader.NodeType == Xml.XmlNodeType.Element) { 6074while (Reader.NodeType != Xml.XmlNodeType.EndElement && Reader.NodeType != Xml.XmlNodeType.None) { 6075if (Reader.NodeType == Xml.XmlNodeType.Element) { 6156while (Reader.NodeType != Xml.XmlNodeType.EndElement && Reader.NodeType != Xml.XmlNodeType.None) { 6157if (Reader.NodeType == Xml.XmlNodeType.Element) { 6228while (Reader.NodeType != Xml.XmlNodeType.EndElement && Reader.NodeType != Xml.XmlNodeType.None) { 6229if (Reader.NodeType == Xml.XmlNodeType.Element) { 6304while (Reader.NodeType != Xml.XmlNodeType.EndElement && Reader.NodeType != Xml.XmlNodeType.None) { 6305if (Reader.NodeType == Xml.XmlNodeType.Element) { 6386while (Reader.NodeType != Xml.XmlNodeType.EndElement && Reader.NodeType != Xml.XmlNodeType.None) { 6387if (Reader.NodeType == Xml.XmlNodeType.Element) { 6458while (Reader.NodeType != Xml.XmlNodeType.EndElement && Reader.NodeType != Xml.XmlNodeType.None) { 6459if (Reader.NodeType == Xml.XmlNodeType.Element) { 6515while (Reader.NodeType != Xml.XmlNodeType.EndElement && Reader.NodeType != Xml.XmlNodeType.None) { 6516if (Reader.NodeType == Xml.XmlNodeType.Element) { 6608while (Reader.NodeType != Xml.XmlNodeType.EndElement && Reader.NodeType != Xml.XmlNodeType.None) { 6609if (Reader.NodeType == Xml.XmlNodeType.Element) { 6677while (Reader.NodeType != Xml.XmlNodeType.EndElement && Reader.NodeType != Xml.XmlNodeType.None) { 6678if (Reader.NodeType == Xml.XmlNodeType.Element) { 6746while (Reader.NodeType != Xml.XmlNodeType.EndElement && Reader.NodeType != Xml.XmlNodeType.None) { 6747if (Reader.NodeType == Xml.XmlNodeType.Element) { 6858while (Reader.NodeType != Xml.XmlNodeType.EndElement && Reader.NodeType != Xml.XmlNodeType.None) { 6859if (Reader.NodeType == Xml.XmlNodeType.Element) { 6922while (Reader.NodeType != Xml.XmlNodeType.EndElement && Reader.NodeType != Xml.XmlNodeType.None) { 6923if (Reader.NodeType == Xml.XmlNodeType.Element) { 6991while (Reader.NodeType != Xml.XmlNodeType.EndElement && Reader.NodeType != Xml.XmlNodeType.None) { 6992if (Reader.NodeType == Xml.XmlNodeType.Element) { 7154while (Reader.NodeType != Xml.XmlNodeType.EndElement && Reader.NodeType != Xml.XmlNodeType.None) { 7155if (Reader.NodeType == Xml.XmlNodeType.Element) { 7210while (Reader.NodeType != Xml.XmlNodeType.EndElement && Reader.NodeType != Xml.XmlNodeType.None) { 7211if (Reader.NodeType == Xml.XmlNodeType.Element) { 7278while (Reader.NodeType != Xml.XmlNodeType.EndElement && Reader.NodeType != Xml.XmlNodeType.None) { 7279if (Reader.NodeType == Xml.XmlNodeType.Element) { 7350while (Reader.NodeType != Xml.XmlNodeType.EndElement && Reader.NodeType != Xml.XmlNodeType.None) { 7351if (Reader.NodeType == Xml.XmlNodeType.Element) { 7418while (Reader.NodeType != Xml.XmlNodeType.EndElement && Reader.NodeType != Xml.XmlNodeType.None) { 7419if (Reader.NodeType == Xml.XmlNodeType.Element) { 7482while (Reader.NodeType != Xml.XmlNodeType.EndElement && Reader.NodeType != Xml.XmlNodeType.None) { 7483if (Reader.NodeType == Xml.XmlNodeType.Element) { 7546while (Reader.NodeType != Xml.XmlNodeType.EndElement && Reader.NodeType != Xml.XmlNodeType.None) { 7547if (Reader.NodeType == Xml.XmlNodeType.Element) { 7606while (Reader.NodeType != Xml.XmlNodeType.EndElement && Reader.NodeType != Xml.XmlNodeType.None) { 7607if (Reader.NodeType == Xml.XmlNodeType.Element) { 7676while (Reader.NodeType != Xml.XmlNodeType.EndElement && Reader.NodeType != Xml.XmlNodeType.None) { 7677if (Reader.NodeType == Xml.XmlNodeType.Element) { 7768while (Reader.NodeType != Xml.XmlNodeType.EndElement && Reader.NodeType != Xml.XmlNodeType.None) { 7769if (Reader.NodeType == Xml.XmlNodeType.Element) { 7878while (Reader.NodeType != Xml.XmlNodeType.EndElement && Reader.NodeType != Xml.XmlNodeType.None) { 7879if (Reader.NodeType == Xml.XmlNodeType.Element) { 7958while (Reader.NodeType != Xml.XmlNodeType.EndElement && Reader.NodeType != Xml.XmlNodeType.None) { 7959if (Reader.NodeType == Xml.XmlNodeType.Element) { 8038while (Reader.NodeType != Xml.XmlNodeType.EndElement && Reader.NodeType != Xml.XmlNodeType.None) { 8039if (Reader.NodeType == Xml.XmlNodeType.Element) { 8115while (Reader.NodeType != Xml.XmlNodeType.EndElement && Reader.NodeType != Xml.XmlNodeType.None) { 8116if (Reader.NodeType == Xml.XmlNodeType.Element) { 8209while (Reader.NodeType != Xml.XmlNodeType.EndElement && Reader.NodeType != Xml.XmlNodeType.None) { 8210if (Reader.NodeType == Xml.XmlNodeType.Element) { 8282while (Reader.NodeType != Xml.XmlNodeType.EndElement && Reader.NodeType != Xml.XmlNodeType.None) { 8283if (Reader.NodeType == Xml.XmlNodeType.Element) { 8394while (Reader.NodeType != Xml.XmlNodeType.EndElement && Reader.NodeType != Xml.XmlNodeType.None) { 8395if (Reader.NodeType == Xml.XmlNodeType.Element) { 8581while (Reader.NodeType != Xml.XmlNodeType.EndElement && Reader.NodeType != Xml.XmlNodeType.None) { 8582if (Reader.NodeType == Xml.XmlNodeType.Element) { 8689while (Reader.NodeType != Xml.XmlNodeType.EndElement && Reader.NodeType != Xml.XmlNodeType.None) { 8690if (Reader.NodeType == Xml.XmlNodeType.Element) { 8766while (Reader.NodeType != Xml.XmlNodeType.EndElement && Reader.NodeType != Xml.XmlNodeType.None) { 8767if (Reader.NodeType == Xml.XmlNodeType.Element) { 8855while (Reader.NodeType != Xml.XmlNodeType.EndElement && Reader.NodeType != Xml.XmlNodeType.None) { 8856if (Reader.NodeType == Xml.XmlNodeType.Element) { 8859else if (Reader.NodeType == Xml.XmlNodeType.Text || 8860Reader.NodeType == Xml.XmlNodeType.CDATA || 8861Reader.NodeType == Xml.XmlNodeType.Whitespace || 8862Reader.NodeType == Xml.XmlNodeType.SignificantWhitespace) { 8932while (Reader.NodeType != Xml.XmlNodeType.EndElement && Reader.NodeType != Xml.XmlNodeType.None) { 8933if (Reader.NodeType == Xml.XmlNodeType.Element) { 8936else if (Reader.NodeType == Xml.XmlNodeType.Text || 8937Reader.NodeType == Xml.XmlNodeType.CDATA || 8938Reader.NodeType == Xml.XmlNodeType.Whitespace || 8939Reader.NodeType == Xml.XmlNodeType.SignificantWhitespace) { 9021while (Reader.NodeType != Xml.XmlNodeType.EndElement && Reader.NodeType != Xml.XmlNodeType.None) { 9022if (Reader.NodeType == Xml.XmlNodeType.Element) { 9125while (Reader.NodeType != Xml.XmlNodeType.EndElement && Reader.NodeType != Xml.XmlNodeType.None) { 9126if (Reader.NodeType == Xml.XmlNodeType.Element) { 9213while (Reader.NodeType != Xml.XmlNodeType.EndElement && Reader.NodeType != Xml.XmlNodeType.None) { 9214if (Reader.NodeType == Xml.XmlNodeType.Element) { 9313while (Reader.NodeType != Xml.XmlNodeType.EndElement && Reader.NodeType != Xml.XmlNodeType.None) { 9314if (Reader.NodeType == Xml.XmlNodeType.Element) { 9405while (Reader.NodeType != Xml.XmlNodeType.EndElement && Reader.NodeType != Xml.XmlNodeType.None) { 9406if (Reader.NodeType == Xml.XmlNodeType.Element) { 9613while (Reader.NodeType != Xml.XmlNodeType.EndElement && Reader.NodeType != Xml.XmlNodeType.None) { 9614if (Reader.NodeType == Xml.XmlNodeType.Element) { 9697while (Reader.NodeType != Xml.XmlNodeType.EndElement && Reader.NodeType != Xml.XmlNodeType.None) { 9698if (Reader.NodeType == Xml.XmlNodeType.Element) { 9781while (Reader.NodeType != Xml.XmlNodeType.EndElement && Reader.NodeType != Xml.XmlNodeType.None) { 9782if (Reader.NodeType == Xml.XmlNodeType.Element) { 9865while (Reader.NodeType != Xml.XmlNodeType.EndElement && Reader.NodeType != Xml.XmlNodeType.None) { 9866if (Reader.NodeType == Xml.XmlNodeType.Element) { 9949while (Reader.NodeType != Xml.XmlNodeType.EndElement && Reader.NodeType != Xml.XmlNodeType.None) { 9950if (Reader.NodeType == Xml.XmlNodeType.Element) { 10033while (Reader.NodeType != Xml.XmlNodeType.EndElement && Reader.NodeType != Xml.XmlNodeType.None) { 10034if (Reader.NodeType == Xml.XmlNodeType.Element) { 10117while (Reader.NodeType != Xml.XmlNodeType.EndElement && Reader.NodeType != Xml.XmlNodeType.None) { 10118if (Reader.NodeType == Xml.XmlNodeType.Element) { 10201while (Reader.NodeType != Xml.XmlNodeType.EndElement && Reader.NodeType != Xml.XmlNodeType.None) { 10202if (Reader.NodeType == Xml.XmlNodeType.Element) { 10285while (Reader.NodeType != Xml.XmlNodeType.EndElement && Reader.NodeType != Xml.XmlNodeType.None) { 10286if (Reader.NodeType == Xml.XmlNodeType.Element) { 10369while (Reader.NodeType != Xml.XmlNodeType.EndElement && Reader.NodeType != Xml.XmlNodeType.None) { 10370if (Reader.NodeType == Xml.XmlNodeType.Element) { 10453while (Reader.NodeType != Xml.XmlNodeType.EndElement && Reader.NodeType != Xml.XmlNodeType.None) { 10454if (Reader.NodeType == Xml.XmlNodeType.Element) { 10537while (Reader.NodeType != Xml.XmlNodeType.EndElement && Reader.NodeType != Xml.XmlNodeType.None) { 10538if (Reader.NodeType == Xml.XmlNodeType.Element) { 10617while (Reader.NodeType != Xml.XmlNodeType.EndElement && Reader.NodeType != Xml.XmlNodeType.None) { 10618if (Reader.NodeType == Xml.XmlNodeType.Element) { 10790while (Reader.NodeType != Xml.XmlNodeType.EndElement && Reader.NodeType != Xml.XmlNodeType.None) { 10791if (Reader.NodeType == Xml.XmlNodeType.Element) { 10913while (Reader.NodeType != Xml.XmlNodeType.EndElement && Reader.NodeType != Xml.XmlNodeType.None) { 10914if (Reader.NodeType == Xml.XmlNodeType.Element) { 11007while (Reader.NodeType != Xml.XmlNodeType.EndElement && Reader.NodeType != Xml.XmlNodeType.None) { 11008if (Reader.NodeType == Xml.XmlNodeType.Element) { 11088while (Reader.NodeType != Xml.XmlNodeType.EndElement && Reader.NodeType != Xml.XmlNodeType.None) { 11089if (Reader.NodeType == Xml.XmlNodeType.Element) { 11183while (Reader.NodeType != Xml.XmlNodeType.EndElement && Reader.NodeType != Xml.XmlNodeType.None) { 11184if (Reader.NodeType == Xml.XmlNodeType.Element) { 11294while (Reader.NodeType != Xml.XmlNodeType.EndElement && Reader.NodeType != Xml.XmlNodeType.None) { 11295if (Reader.NodeType == Xml.XmlNodeType.Element) { 11427while (Reader.NodeType != Xml.XmlNodeType.EndElement && Reader.NodeType != Xml.XmlNodeType.None) { 11428if (Reader.NodeType == Xml.XmlNodeType.Element) { 11522while (Reader.NodeType != Xml.XmlNodeType.EndElement && Reader.NodeType != Xml.XmlNodeType.None) { 11523if (Reader.NodeType == Xml.XmlNodeType.Element) { 11660while (Reader.NodeType != Xml.XmlNodeType.EndElement && Reader.NodeType != Xml.XmlNodeType.None) { 11661if (Reader.NodeType == Xml.XmlNodeType.Element) { 11745while (Reader.NodeType != Xml.XmlNodeType.EndElement && Reader.NodeType != Xml.XmlNodeType.None) { 11746if (Reader.NodeType == Xml.XmlNodeType.Element) { 11887while (Reader.NodeType != Xml.XmlNodeType.EndElement && Reader.NodeType != Xml.XmlNodeType.None) { 11888if (Reader.NodeType == Xml.XmlNodeType.Element) { 11963while (Reader.NodeType != Xml.XmlNodeType.EndElement && Reader.NodeType != Xml.XmlNodeType.None) { 11964if (Reader.NodeType == Xml.XmlNodeType.Element) { 12052while (Reader.NodeType != Xml.XmlNodeType.EndElement && Reader.NodeType != Xml.XmlNodeType.None) { 12053if (Reader.NodeType == Xml.XmlNodeType.Element) { 12158while (Reader.NodeType != Xml.XmlNodeType.EndElement && Reader.NodeType != Xml.XmlNodeType.None) { 12159if (Reader.NodeType == Xml.XmlNodeType.Element) { 12386while (Reader.NodeType != Xml.XmlNodeType.EndElement && Reader.NodeType != Xml.XmlNodeType.None) { 12387if (Reader.NodeType == Xml.XmlNodeType.Element) { 12475while (Reader.NodeType != Xml.XmlNodeType.EndElement && Reader.NodeType != Xml.XmlNodeType.None) { 12476if (Reader.NodeType == Xml.XmlNodeType.Element) { 12596while (Reader.NodeType != Xml.XmlNodeType.EndElement && Reader.NodeType != Xml.XmlNodeType.None) { 12597if (Reader.NodeType == Xml.XmlNodeType.Element) { 12716while (Reader.NodeType != Xml.XmlNodeType.EndElement && Reader.NodeType != Xml.XmlNodeType.None) { 12717if (Reader.NodeType == Xml.XmlNodeType.Element) { 12816while (Reader.NodeType != Xml.XmlNodeType.EndElement && Reader.NodeType != Xml.XmlNodeType.None) { 12817if (Reader.NodeType == Xml.XmlNodeType.Element) { 12897while (Reader.NodeType != Xml.XmlNodeType.EndElement && Reader.NodeType != Xml.XmlNodeType.None) { 12898if (Reader.NodeType == Xml.XmlNodeType.Element) { 13027while (Reader.NodeType != Xml.XmlNodeType.EndElement && Reader.NodeType != Xml.XmlNodeType.None) { 13028if (Reader.NodeType == Xml.XmlNodeType.Element) { 13107while (Reader.NodeType != Xml.XmlNodeType.EndElement && Reader.NodeType != Xml.XmlNodeType.None) { 13108if (Reader.NodeType == Xml.XmlNodeType.Element) { 13187while (Reader.NodeType != Xml.XmlNodeType.EndElement && Reader.NodeType != Xml.XmlNodeType.None) { 13188if (Reader.NodeType == Xml.XmlNodeType.Element) {
System.Xaml (7)
src\Microsoft.DotNet.Wpf\src\Shared\System\Windows\Markup\XmlCompatibilityReader.cs (2)
172switch (Reader.NodeType) 746_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)
180XmlNodeType xmlNodeType = _xmlReader.NodeType; 248Debug.Assert(_xmlReader.NodeType == XmlNodeType.Element); 284Debug.Assert(_xmlReader.NodeType == XmlNodeType.Element); 426Debug.Assert(_xmlReader.NodeType == XmlNodeType.Element);