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