24 overrides of Depth
Microsoft.Build.Engine.UnitTests (1)
Construction\XmlReaderWithoutLocation_Tests.cs (1)
39
public override int
Depth
PresentationBuildTasks (1)
src\Microsoft.DotNet.Wpf\src\Shared\System\Windows\Markup\XmlWrappingReader.cs (1)
48
public override int
Depth
{ get { return _reader.Depth; } }
System.Data.Common (1)
System\Data\xmlsaver.cs (1)
3370
public override int
Depth
System.IO.Packaging (1)
System\IO\Packaging\XmlWrappingReader.cs (1)
33
public override int
Depth
{ get { return _reader.Depth; } }
System.Private.DataContractSerialization (4)
System\Runtime\Serialization\ExtensionDataReader.cs (1)
118
public override int
Depth
{ get { return IsXmlDataNode ? _xmlNodeReader.Depth : _depth; } }
System\Runtime\Serialization\XmlSerializableReader.cs (1)
78
public override int
Depth
{ get { return InnerReader.Depth; } }
System\Xml\XmlBaseReader.cs (1)
476
public sealed override int
Depth
System\Xml\XmlDictionaryReader.cs (1)
1355
public override int
Depth
System.Private.Xml (12)
System\Xml\BinaryXml\XmlBinaryReader.cs (1)
511
public override int
Depth
System\Xml\Core\XmlAsyncCheckReader.cs (1)
145
public override int
Depth
System\Xml\Core\XmlTextReader.cs (1)
147
public override int
Depth
System\Xml\Core\XmlTextReaderImpl.cs (1)
924
public override int
Depth
System\Xml\Core\XmlValidatingReader.cs (1)
85
public override int
Depth
System\Xml\Core\XmlValidatingReaderImpl.cs (1)
350
public override int
Depth
System\Xml\Core\XmlWrappingReader.cs (1)
41
public override int
Depth
{ get { return reader.Depth; } }
System\Xml\Core\XsdCachingReader.cs (1)
171
public override int
Depth
System\Xml\Core\XsdValidatingReader.cs (1)
332
public override int
Depth
System\Xml\Dom\XmlNodeReader.cs (1)
1244
public override int
Depth
System\Xml\XPath\XPathNavigatorReader.cs (1)
960
public override int
Depth
System\Xml\Xsl\XsltOld\ReaderOutput.cs (1)
132
public override int
Depth
System.Private.Xml.Linq (1)
System\Xml\Linq\XNodeReader.cs (1)
83
public override int
Depth
System.ServiceModel.Primitives (2)
Internals\System\Xml\XmlMtomReader.cs (2)
559
public override int
Depth
1497
public override int
Depth
System.Xaml (1)
src\Microsoft.DotNet.Wpf\src\Shared\System\Windows\Markup\XmlWrappingReader.cs (1)
48
public override int
Depth
{ get { return _reader.Depth; } }
213 references to Depth
Microsoft.Build.Engine.UnitTests (1)
Construction\XmlReaderWithoutLocation_Tests.cs (1)
41
get { return _wrappedReader.
Depth
; }
Microsoft.CodeAnalysis (2)
Desktop\AssemblyPortabilityPolicy.cs (1)
51
return reader.ReadToDescendant(elementName, elementNamespace) && reader.
Depth
== depth;
DocumentationComments\XmlDocumentationCommentTextReader.XmlStream.cs (1)
76
return reader.
Depth
== 1
Microsoft.CodeAnalysis.Workspaces (2)
Shared\Utilities\XmlFragmentParser.cs (2)
98
return _xmlReader.
Depth
< 2;
106
return _xmlReader.
Depth
== 1
PresentationBuildTasks (38)
MS\Internal\MarkupCompiler\ParserExtension.cs (1)
520
else if (!_compiler.IsBamlNeeded && !_compiler.ProcessingRootContext && _compiler.IsCompilingEntryPointClass && xmlReader.
Depth
> 0)
src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\StyleXamlParser.cs (1)
90
_startingDepth = TokenReader.XmlReader.
Depth
;
src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\TemplateXamlParser.cs (1)
77
_startingDepth = TokenReader.XmlReader.
Depth
;
src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\XamlReaderHelper.cs (31)
545
AddNodeToCollection(new XamlDocumentEndNode(LineNumber, LinePosition, XmlReader.
Depth
));
614
AddNodeToCollection(new XamlUnknownTagEndNode(LineNumber, LinePosition, XmlReader.
Depth
,
649
int depth = XmlReader.
Depth
;
734
XamlPropertyComplexEndNode(LineNumber, LinePosition, XmlReader.
Depth
));
760
LineNumber, LinePosition, XmlReader.
Depth
, propertyMember,
777
LineNumber, LinePosition, XmlReader.
Depth
, propertyMember,
828
XmlReader.
Depth
,
855
LineNumber, LinePosition, XmlReader.
Depth
, propertyMember,
890
LineNumber, LinePosition, XmlReader.
Depth
, propertyMember,
929
AddNodeToCollection(new XamlXmlnsPropertyNode(LineNumber, LinePosition, XmlReader.
Depth
,
938
AddNodeToCollection(new XamlPIMappingNode(LineNumber, LinePosition, XmlReader.
Depth
,
948
AddNodeToCollection(new XamlClrEventNode(LineNumber, LinePosition, XmlReader.
Depth
,
973
new XamlPropertyArrayEndNode(LineNumber, LinePosition, XmlReader.
Depth
));
998
new XamlPropertyIListEndNode(LineNumber, LinePosition, XmlReader.
Depth
));
1023
new XamlPropertyIDictionaryEndNode(LineNumber, LinePosition, XmlReader.
Depth
));
1043
new XamlDefTagNode(LineNumber, LinePosition, XmlReader.
Depth
,
1061
AddNodeToCollection(new XamlDefAttributeNode(LineNumber, LinePosition, XmlReader.
Depth
,
1070
AddNodeToCollection(new XamlPresentationOptionsAttributeNode(LineNumber, LinePosition, XmlReader.
Depth
,
1083
AddNodeToCollection(new XamlDefAttributeKeyTypeNode(LineNumber, LinePosition, XmlReader.
Depth
,
2942
ArrayList xamlNodes = _extensionParser.CompileDictionaryKeys(complexDefAttributesList, XmlReader.
Depth
);
2954
ArrayList xamlNodes = _extensionParser.CompileAttributes(markupExtensionList, XmlReader.
Depth
);
3577
int depth = XmlReader.
Depth
;
4628
int depth = XmlReader.
Depth
;
4714
WriteText(textValue, null, XmlReader.
Depth
); // Text for IAddChild::AddText()
4774
WriteText(textValue, null, XmlReader.
Depth
); // Text for object/string/IList ContentProperty
4787
WriteText(textValue, converterType, XmlReader.
Depth
); // Text for TypeConverter
4805
WriteText(textValue, converterType, XmlReader.
Depth
); // Text for TypeConverter
5027
WriteText(textValue, null, XmlReader.
Depth
); // Text for (Complex collection property)::Add()
5119
WriteText(textValue, null, XmlReader.
Depth
); // Text for property IList::Add()
5150
WriteText( textValue, null, XmlReader.
Depth
); // Text saved for Unknown purposes.
5227
0 == XmlReader.
Depth
&& XmlReader.NodeType == XmlNodeType.None))
src\Microsoft.DotNet.Wpf\src\Shared\System\Windows\Markup\XmlCompatibilityReader.cs (3)
218
int elementDepth = Reader.
Depth
;
306
int elementDepth = Reader.
Depth
;
676
return Reader.
Depth
- _depthOffset;
src\Microsoft.DotNet.Wpf\src\Shared\System\Windows\Markup\XmlWrappingReader.cs (1)
48
public override int Depth { get { return _reader.
Depth
; } }
System.Data.Common (51)
System\Data\DataSet.cs (11)
1677
iCurrentDepth = reader.
Depth
;
1770
while (!reader.EOF && reader.NodeType != XmlNodeType.EndElement && reader.NodeType != XmlNodeType.Element && reader.
Depth
> depth)
2083
iCurrentDepth = reader.
Depth
;
2419
int d = reader.
Depth
;
2448
MoveToElement(reader, reader.
Depth
- 1 /*iCurrentDepth*/); // skip over whitespace.
2453
if (reader.
Depth
> d)
2463
MoveToElement(reader, reader.
Depth
- 1 /*iCurrentDepth*/); // skip over whitespace.
2465
if (reader.
Depth
- 1 > d)
2474
MoveToElement(reader, reader.
Depth
- 1 /*iCurrentDepth*/); // skip over whitespace.
2488
while (reader.
Depth
> d)
2588
iCurrentDepth = reader.
Depth
;
System\Data\DataTable.cs (8)
5757
iCurrentDepth = reader.
Depth
;
5983
iCurrentDepth = reader.
Depth
;
6259
while (!reader.EOF && reader.NodeType != XmlNodeType.EndElement && reader.NodeType != XmlNodeType.Element && reader.
Depth
> depth)
6270
int d = reader.
Depth
;
6300
MoveToElement(reader, reader.
Depth
- 1 /*iCurrentDepth*/); // skip over whitespace.
6305
if (reader.
Depth
> d)
6313
if (reader.
Depth
- 1 > d)
6331
while (reader.
Depth
> d)
System\Data\XmlDataLoader.cs (12)
586
int entryDepth = _dataReader.
Depth
; // Store current XML element depth so we'll read
623
if (_dataReader.
Depth
< entryDepth) // Stop if we have consumed all elements allowed
698
int entryDepth = _dataReader!.
Depth
- 1; // Store current reader depth so we know when to stop reading
736
while (entryDepth < _dataReader.
Depth
)
874
int entryDepth = _dataReader!.
Depth
; // Store current reader depth so we know when to stop reading
961
if (_dataReader.Read() && entryDepth < _dataReader.
Depth
)
964
while (entryDepth < _dataReader.
Depth
)
1144
int entryDepth = _dataReader!.
Depth
; // Store depth so we won't read too much
1190
while (_dataReader.Read() && (entryDepth < _dataReader.
Depth
)) ;
1230
if (_dataReader.Read() && entryDepth < _dataReader.
Depth
)
1233
while (entryDepth < _dataReader.
Depth
)
1247
while (_dataReader.Read() && entryDepth < _dataReader.
Depth
&& IsTextLikeNode(_dataReader.NodeType))
System\Data\XMLDiffLoader.cs (19)
81
int iSsyncDepth = ssync.
Depth
;
86
while (iSsyncDepth < ssync.
Depth
)
132
int iSsyncDepth = ssync.
Depth
;
137
while (iSsyncDepth < ssync.
Depth
)
182
int iSsyncDepth = ssync.
Depth
;
185
while (iSsyncDepth < ssync.
Depth
)
195
int iRowDepth = ssync.
Depth
;
197
while (iRowDepth < ssync.
Depth
)
210
while ((ssync.NodeType == XmlNodeType.EndElement) && (iSsyncDepth < ssync.
Depth
))
222
int iSsyncDepth = ssync.
Depth
;
225
while (iSsyncDepth < ssync.
Depth
)
249
int iRowDepth = ssync.
Depth
;
252
while (iRowDepth < ssync.
Depth
)
264
while ((ssync.NodeType == XmlNodeType.EndElement) && (iSsyncDepth < ssync.
Depth
))
307
int iRowDepth = row.
Depth
;
348
int currentDepth = row.
Depth
;
369
while (row.
Depth
> iRowDepth)
424
int iColumnDepth = row.
Depth
;
428
if (row.
Depth
> iColumnDepth)
System\Data\xmlsaver.cs (1)
3372
get { return _xmlreader.
Depth
; }
System.IO.Packaging (10)
System\IO\Packaging\PackagingUtilities.cs (1)
34
if (reader.Read() && reader.NodeType == XmlNodeType.XmlDeclaration && reader.
Depth
== 0)
System\IO\Packaging\PartBasedPackageProperties.cs (1)
529
if (reader.
Depth
!= 1)
System\IO\Packaging\XmlCompatibilityReader.cs (3)
199
int elementDepth = Reader.
Depth
;
287
int elementDepth = Reader.
Depth
;
656
return Reader.
Depth
- _depthOffset;
System\IO\Packaging\XmlWrappingReader.cs (1)
33
public override int Depth { get { return _reader.
Depth
; } }
System\IO\Packaging\ZipPackage.cs (4)
981
&& (reader.
Depth
== 0)
1007
&& reader.
Depth
== 1
1014
&& reader.
Depth
== 1
1020
else if (reader.NodeType == XmlNodeType.EndElement && reader.
Depth
== 0 && reader.Name == TypesTagName)
System.Private.DataContractSerialization (10)
System\Runtime\Serialization\XmlReaderDelegator.cs (1)
1097
internal int Depth { get { return reader.
Depth
; } }
System\Runtime\Serialization\XmlSerializableReader.cs (2)
54
if (reader.
Depth
== _startDepth)
78
public override int Depth { get { return InnerReader.
Depth
; } }
System\Runtime\Serialization\XmlSerializableServices.cs (2)
34
int startDepth = xmlReader.
Depth
;
36
while (xmlReader.
Depth
> startDepth && xmlReader.NodeType != XmlNodeType.EndElement)
System\Xml\XmlDictionaryReader.cs (1)
1359
return _reader.
Depth
;
System\Xml\XmlDictionaryWriter.cs (4)
387
int d = (reader.NodeType == XmlNodeType.None ? -1 : reader.
Depth
);
397
else if (reader.
Depth
> d && reader.IsStartArray(out type))
433
while (d < reader.
Depth
|| (d == reader.
Depth
&& reader.NodeType == XmlNodeType.EndElement));
System.Private.Xml (84)
System\Xml\Core\XmlAsyncCheckReader.cs (1)
150
return _coreReader.
Depth
;
System\Xml\Core\XmlReader.cs (9)
958
int parentDepth =
Depth
;
981
while (Read() &&
Depth
> parentDepth)
999
int parentDepth =
Depth
;
1023
while (Read() &&
Depth
> parentDepth)
1139
int d = NodeType == XmlNodeType.None ? -1 :
Depth
;
1140
while (Read() && d <
Depth
)
1181
if (d ==
Depth
&& NodeType == XmlNodeType.EndElement)
1391
int depth =
Depth
;
1393
while (Read() && depth <
Depth
)
System\Xml\Core\XmlReaderAsync.cs (5)
213
int d = NodeType == XmlNodeType.None ? -1 :
Depth
;
214
while (await ReadAsync().ConfigureAwait(false) && d <
Depth
)
255
if (d ==
Depth
&& NodeType == XmlNodeType.EndElement)
302
int depth =
Depth
;
304
while (await ReadAsync().ConfigureAwait(false) && depth <
Depth
)
System\Xml\Core\XmlSubtreeReader.cs (15)
101
_initialDepth = reader.
Depth
;
167
int depth = reader.
Depth
- _initialDepth;
479
Debug.Assert(reader.
Depth
>= _initialDepth);
480
if (reader.
Depth
== _initialDepth)
550
Debug.Assert(reader.
Depth
>= _initialDepth);
552
if (reader.
Depth
== _initialDepth && reader.NodeType == XmlNodeType.Element && !reader.IsEmptyElement)
557
while (reader.
Depth
> _initialDepth && reader.Read())
587
Debug.Assert(reader.
Depth
>= _initialDepth);
588
if (reader.
Depth
== _initialDepth)
595
while (reader.NodeType != XmlNodeType.EndElement && reader.
Depth
> _initialDepth)
616
Debug.Assert(reader.
Depth
>= _initialDepth);
941
if (reader.
Depth
== _initialDepth)
1078
if (reader.
Depth
== _initialDepth)
1428
if (reader.
Depth
== _initialDepth)
1456
if (reader.
Depth
== _initialDepth)
System\Xml\Core\XmlSubtreeReaderAsync.cs (10)
42
Debug.Assert(reader.
Depth
>= _initialDepth);
43
if (reader.
Depth
== _initialDepth)
113
Debug.Assert(reader.
Depth
>= _initialDepth);
114
if (reader.
Depth
== _initialDepth)
121
while (reader.NodeType != XmlNodeType.EndElement && reader.
Depth
> _initialDepth)
142
Debug.Assert(reader.
Depth
>= _initialDepth);
347
if (reader.
Depth
== _initialDepth)
484
if (reader.
Depth
== _initialDepth)
612
if (reader.
Depth
== _initialDepth)
640
if (reader.
Depth
== _initialDepth)
System\Xml\Core\XmlValidatingReaderImpl.cs (4)
354
return _coreReader.
Depth
;
1053
int initialDepth = _coreReader.
Depth
;
1055
while (_outerReader.Read() && _coreReader.
Depth
> initialDepth) ;
1099
if (_coreReader.
Depth
> 0 || _coreReaderImpl.FragmentType != XmlNodeType.Document)
System\Xml\Core\XmlValidatingReaderImplAsync.cs (2)
194
int initialDepth = _coreReader.
Depth
;
196
while (await _outerReader.ReadAsync().ConfigureAwait(false) && _coreReader.
Depth
> initialDepth) ;
System\Xml\Core\XmlWrappingReader.cs (1)
41
public override int Depth { get { return reader.
Depth
; } }
System\Xml\Core\XmlWriter.cs (3)
363
int d = reader.NodeType == XmlNodeType.None ? -1 : reader.
Depth
;
418
} while (reader.Read() && (d < reader.
Depth
|| (d == reader.
Depth
&& reader.NodeType == XmlNodeType.EndElement)));
System\Xml\Core\XmlWriterAsync.cs (6)
299
int d = reader.NodeType == XmlNodeType.None ? -1 : reader.
Depth
;
352
} while (reader.Read() && (d < reader.
Depth
|| (d == reader.
Depth
&& reader.NodeType == XmlNodeType.EndElement)));
361
int d = reader.NodeType == XmlNodeType.None ? -1 : reader.
Depth
;
415
} while (await reader.ReadAsync().ConfigureAwait(false) && (d < reader.
Depth
|| (d == reader.
Depth
&& reader.NodeType == XmlNodeType.EndElement)));
System\Xml\Core\XsdCachingReader.cs (8)
84
element.SetItemData(_coreReader.LocalName, _coreReader.Prefix, _coreReader.NamespaceURI, _coreReader.
Depth
); //Only created for element node type
420
recordedNode.SetItemData(_coreReader.LocalName, _coreReader.Prefix, _coreReader.NamespaceURI, _coreReader.
Depth
); //Only created for element node type
433
recordedNode.Depth = _coreReader.
Depth
;
485
ValidatingReaderNodeData textNode = RecordTextNode(textValue, originalStringValue, _coreReader.
Depth
+ 1, 0, 0);
497
recordedNode.SetItemData(_coreReader.LocalName, _coreReader.Prefix, _coreReader.NamespaceURI, _coreReader.
Depth
);
547
int startDepth = _coreReader.
Depth
- 1;
548
while (_coreReader.Read() && _coreReader.
Depth
> startDepth)
701
attInfo.SetItemData(_coreReader.LocalName, _coreReader.Prefix, _coreReader.NamespaceURI, _coreReader.
Depth
);
System\Xml\Core\XsdCachingReaderAsync.cs (4)
52
recordedNode.SetItemData(_coreReader.LocalName, _coreReader.Prefix, _coreReader.NamespaceURI, _coreReader.
Depth
); //Only created for element node type
65
recordedNode.Depth = _coreReader.
Depth
;
113
int startDepth = _coreReader.
Depth
- 1;
114
while (await _coreReader.ReadAsync().ConfigureAwait(false) && _coreReader.
Depth
> startDepth)
System\Xml\Core\XsdValidatingReader.cs (3)
342
return _coreReader.
Depth
;
2045
if (_processInlineSchema && IsXSDRoot(_coreReader.LocalName, _coreReader.NamespaceURI) && _coreReader.
Depth
> 0)
2138
int depth = _coreReader.
Depth
;
System\Xml\Core\XsdValidatingReaderAsync.cs (2)
544
if (_processInlineSchema && IsXSDRoot(_coreReader.LocalName, _coreReader.NamespaceURI) && _coreReader.
Depth
> 0)
636
int depth = _coreReader.
Depth
;
System\Xml\Schema\Parser.cs (7)
73
_schemaXmlDepth = reader.
Depth
;
168
if (_reader!.
Depth
> _markupDepth)
199
if (_reader.
Depth
== _schemaXmlDepth)
206
_markupDepth = _reader.
Depth
;
218
_markupDepth = _reader.
Depth
;
237
if (_reader.
Depth
== _markupDepth)
261
if (_reader.
Depth
== _schemaXmlDepth)
System\Xml\Schema\ParserAsync.cs (1)
33
_schemaXmlDepth = reader.
Depth
;
System\Xml\XPath\XPathDocument.cs (3)
175
initialDepth = reader.
Depth
;
189
if (!topLevelReader && reader.
Depth
< initialDepth)
257
if (space == XmlSpace.Preserve && (!topLevelReader || reader.
Depth
!= 0))
System.ServiceModel.Primitives (10)
Internals\System\Xml\XmlMtomReader.cs (5)
363
int xopDepth = _xmlReader.
Depth
;
366
while (_xmlReader.
Depth
> xopDepth)
563
return _xmlReader.
Depth
;
1501
return (_readState == ReadState.Interactive) ? _parentReader.
Depth
+ 1 : _parentReader.
Depth
;
System\ServiceModel\Channels\MessageHeaders.cs (2)
940
int depth = reader.
Depth
;
945
} while (reader.Read() && depth < reader.
Depth
);
System\ServiceModel\Channels\WsrmFault.cs (3)
743
int depth = headerReader.
Depth
;
746
while (headerReader.
Depth
> depth)
773
if (headerReader.
Depth
== depth)
System.ServiceModel.Syndication (1)
System\ServiceModel\Syndication\XmlSyndicationContent.cs (1)
160
while (reader.
Depth
>= 1 && reader.ReadState == ReadState.Interactive)
System.Xaml (4)
src\Microsoft.DotNet.Wpf\src\Shared\System\Windows\Markup\XmlCompatibilityReader.cs (3)
218
int elementDepth = Reader.
Depth
;
306
int elementDepth = Reader.
Depth
;
676
return Reader.
Depth
- _depthOffset;
src\Microsoft.DotNet.Wpf\src\Shared\System\Windows\Markup\XmlWrappingReader.cs (1)
48
public override int Depth { get { return _reader.
Depth
; } }