22 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)
3388
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.Xaml (1)
src\Microsoft.DotNet.Wpf\src\Shared\System\Windows\Markup\XmlWrappingReader.cs (1)
48
public override int
Depth
{ get { return _reader.Depth; } }
203 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)
518
else if (!_compiler.IsBamlNeeded && !_compiler.ProcessingRootContext && _compiler.IsCompilingEntryPointClass && xmlReader.
Depth
> 0)
src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\StyleXamlParser.cs (1)
85
_startingDepth = TokenReader.XmlReader.
Depth
;
src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\TemplateXamlParser.cs (1)
73
_startingDepth = TokenReader.XmlReader.
Depth
;
src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\XamlReaderHelper.cs (31)
539
AddNodeToCollection(new XamlDocumentEndNode(LineNumber, LinePosition, XmlReader.
Depth
));
608
AddNodeToCollection(new XamlUnknownTagEndNode(LineNumber, LinePosition, XmlReader.
Depth
,
643
int depth = XmlReader.
Depth
;
728
XamlPropertyComplexEndNode(LineNumber, LinePosition, XmlReader.
Depth
));
754
LineNumber, LinePosition, XmlReader.
Depth
, propertyMember,
771
LineNumber, LinePosition, XmlReader.
Depth
, propertyMember,
822
XmlReader.
Depth
,
849
LineNumber, LinePosition, XmlReader.
Depth
, propertyMember,
884
LineNumber, LinePosition, XmlReader.
Depth
, propertyMember,
923
AddNodeToCollection(new XamlXmlnsPropertyNode(LineNumber, LinePosition, XmlReader.
Depth
,
932
AddNodeToCollection(new XamlPIMappingNode(LineNumber, LinePosition, XmlReader.
Depth
,
942
AddNodeToCollection(new XamlClrEventNode(LineNumber, LinePosition, XmlReader.
Depth
,
967
new XamlPropertyArrayEndNode(LineNumber, LinePosition, XmlReader.
Depth
));
992
new XamlPropertyIListEndNode(LineNumber, LinePosition, XmlReader.
Depth
));
1017
new XamlPropertyIDictionaryEndNode(LineNumber, LinePosition, XmlReader.
Depth
));
1037
new XamlDefTagNode(LineNumber, LinePosition, XmlReader.
Depth
,
1055
AddNodeToCollection(new XamlDefAttributeNode(LineNumber, LinePosition, XmlReader.
Depth
,
1064
AddNodeToCollection(new XamlPresentationOptionsAttributeNode(LineNumber, LinePosition, XmlReader.
Depth
,
1077
AddNodeToCollection(new XamlDefAttributeKeyTypeNode(LineNumber, LinePosition, XmlReader.
Depth
,
2936
ArrayList xamlNodes = _extensionParser.CompileDictionaryKeys(complexDefAttributesList, XmlReader.
Depth
);
2948
ArrayList xamlNodes = _extensionParser.CompileAttributes(markupExtensionList, XmlReader.
Depth
);
3571
int depth = XmlReader.
Depth
;
4622
int depth = XmlReader.
Depth
;
4708
WriteText(textValue, null, XmlReader.
Depth
); // Text for IAddChild::AddText()
4768
WriteText(textValue, null, XmlReader.
Depth
); // Text for object/string/IList ContentProperty
4781
WriteText(textValue, converterType, XmlReader.
Depth
); // Text for TypeConverter
4799
WriteText(textValue, converterType, XmlReader.
Depth
); // Text for TypeConverter
5021
WriteText(textValue, null, XmlReader.
Depth
); // Text for (Complex collection property)::Add()
5113
WriteText(textValue, null, XmlReader.
Depth
); // Text for property IList::Add()
5144
WriteText( textValue, null, XmlReader.
Depth
); // Text saved for Unknown purposes.
5221
0 == XmlReader.
Depth
&& XmlReader.NodeType == XmlNodeType.None))
src\Microsoft.DotNet.Wpf\src\Shared\System\Windows\Markup\XmlCompatibilityReader.cs (3)
216
int elementDepth = Reader.
Depth
;
304
int elementDepth = Reader.
Depth
;
674
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)
1691
iCurrentDepth = reader.
Depth
;
1784
while (!reader.EOF && reader.NodeType != XmlNodeType.EndElement && reader.NodeType != XmlNodeType.Element && reader.
Depth
> depth)
2115
iCurrentDepth = reader.
Depth
;
2456
int d = reader.
Depth
;
2485
MoveToElement(reader, reader.
Depth
- 1 /*iCurrentDepth*/); // skip over whitespace.
2490
if (reader.
Depth
> d)
2500
MoveToElement(reader, reader.
Depth
- 1 /*iCurrentDepth*/); // skip over whitespace.
2502
if (reader.
Depth
- 1 > d)
2511
MoveToElement(reader, reader.
Depth
- 1 /*iCurrentDepth*/); // skip over whitespace.
2525
while (reader.
Depth
> d)
2627
iCurrentDepth = reader.
Depth
;
System\Data\DataTable.cs (8)
5791
iCurrentDepth = reader.
Depth
;
6018
iCurrentDepth = reader.
Depth
;
6294
while (!reader.EOF && reader.NodeType != XmlNodeType.EndElement && reader.NodeType != XmlNodeType.Element && reader.
Depth
> depth)
6306
int d = reader.
Depth
;
6336
MoveToElement(reader, reader.
Depth
- 1 /*iCurrentDepth*/); // skip over whitespace.
6341
if (reader.
Depth
> d)
6349
if (reader.
Depth
- 1 > d)
6367
while (reader.
Depth
> d)
System\Data\XmlDataLoader.cs (12)
591
int entryDepth = _dataReader.
Depth
; // Store current XML element depth so we'll read
628
if (_dataReader.
Depth
< entryDepth) // Stop if we have consumed all elements allowed
704
int entryDepth = _dataReader!.
Depth
- 1; // Store current reader depth so we know when to stop reading
742
while (entryDepth < _dataReader.
Depth
)
881
int entryDepth = _dataReader!.
Depth
; // Store current reader depth so we know when to stop reading
968
if (_dataReader.Read() && entryDepth < _dataReader.
Depth
)
971
while (entryDepth < _dataReader.
Depth
)
1152
int entryDepth = _dataReader!.
Depth
; // Store depth so we won't read too much
1198
while (_dataReader.Read() && (entryDepth < _dataReader.
Depth
)) ;
1238
if (_dataReader.Read() && entryDepth < _dataReader.
Depth
)
1241
while (entryDepth < _dataReader.
Depth
)
1255
while (_dataReader.Read() && entryDepth < _dataReader.
Depth
&& IsTextLikeNode(_dataReader.NodeType))
System\Data\XMLDiffLoader.cs (19)
84
int iSsyncDepth = ssync.
Depth
;
89
while (iSsyncDepth < ssync.
Depth
)
136
int iSsyncDepth = ssync.
Depth
;
141
while (iSsyncDepth < ssync.
Depth
)
186
int iSsyncDepth = ssync.
Depth
;
189
while (iSsyncDepth < ssync.
Depth
)
199
int iRowDepth = ssync.
Depth
;
201
while (iRowDepth < ssync.
Depth
)
214
while ((ssync.NodeType == XmlNodeType.EndElement) && (iSsyncDepth < ssync.
Depth
))
226
int iSsyncDepth = ssync.
Depth
;
229
while (iSsyncDepth < ssync.
Depth
)
253
int iRowDepth = ssync.
Depth
;
256
while (iRowDepth < ssync.
Depth
)
268
while ((ssync.NodeType == XmlNodeType.EndElement) && (iSsyncDepth < ssync.
Depth
))
312
int iRowDepth = row.
Depth
;
353
int currentDepth = row.
Depth
;
374
while (row.
Depth
> iRowDepth)
429
int iColumnDepth = row.
Depth
;
433
if (row.
Depth
> iColumnDepth)
System\Data\xmlsaver.cs (1)
3390
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.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)
216
int elementDepth = Reader.
Depth
;
304
int elementDepth = Reader.
Depth
;
674
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
; } }