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