21 overrides of Depth
System.Data.Common (1)
System\Data\xmlsaver.cs (1)
3388public 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
173 references to 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)
97return _xmlReader.Depth < 2; 105return _xmlReader.Depth == 1
NuGet.Protocol (1)
HttpSource\HttpStreamValidation.cs (1)
221if (xmlReader.Depth != 0)
System.Data.Common (51)
System\Data\DataSet.cs (11)
1688iCurrentDepth = reader.Depth; 1781while (!reader.EOF && reader.NodeType != XmlNodeType.EndElement && reader.NodeType != XmlNodeType.Element && reader.Depth > depth) 2112iCurrentDepth = reader.Depth; 2453int d = reader.Depth; 2482MoveToElement(reader, reader.Depth - 1 /*iCurrentDepth*/); // skip over whitespace. 2487if (reader.Depth > d) 2497MoveToElement(reader, reader.Depth - 1 /*iCurrentDepth*/); // skip over whitespace. 2499if (reader.Depth - 1 > d) 2508MoveToElement(reader, reader.Depth - 1 /*iCurrentDepth*/); // skip over whitespace. 2522while (reader.Depth > d) 2624iCurrentDepth = reader.Depth;
System\Data\DataTable.cs (8)
5791iCurrentDepth = reader.Depth; 6018iCurrentDepth = reader.Depth; 6294while (!reader.EOF && reader.NodeType != XmlNodeType.EndElement && reader.NodeType != XmlNodeType.Element && reader.Depth > depth) 6306int d = reader.Depth; 6336MoveToElement(reader, reader.Depth - 1 /*iCurrentDepth*/); // skip over whitespace. 6341if (reader.Depth > d) 6349if (reader.Depth - 1 > d) 6367while (reader.Depth > d)
System\Data\XmlDataLoader.cs (12)
591int entryDepth = _dataReader.Depth; // Store current XML element depth so we'll read 628if (_dataReader.Depth < entryDepth) // Stop if we have consumed all elements allowed 704int entryDepth = _dataReader!.Depth - 1; // Store current reader depth so we know when to stop reading 742while (entryDepth < _dataReader.Depth) 881int entryDepth = _dataReader!.Depth; // Store current reader depth so we know when to stop reading 968if (_dataReader.Read() && entryDepth < _dataReader.Depth) 971while (entryDepth < _dataReader.Depth) 1152int entryDepth = _dataReader!.Depth; // Store depth so we won't read too much 1198while (_dataReader.Read() && (entryDepth < _dataReader.Depth)) ; 1238if (_dataReader.Read() && entryDepth < _dataReader.Depth) 1241while (entryDepth < _dataReader.Depth) 1255while (_dataReader.Read() && entryDepth < _dataReader.Depth && IsTextLikeNode(_dataReader.NodeType))
System\Data\XMLDiffLoader.cs (19)
84int iSsyncDepth = ssync.Depth; 89while (iSsyncDepth < ssync.Depth) 136int iSsyncDepth = ssync.Depth; 141while (iSsyncDepth < ssync.Depth) 186int iSsyncDepth = ssync.Depth; 189while (iSsyncDepth < ssync.Depth) 199int iRowDepth = ssync.Depth; 201while (iRowDepth < ssync.Depth) 214while ((ssync.NodeType == XmlNodeType.EndElement) && (iSsyncDepth < ssync.Depth)) 226int iSsyncDepth = ssync.Depth; 229while (iSsyncDepth < ssync.Depth) 253int iRowDepth = ssync.Depth; 256while (iRowDepth < ssync.Depth) 268while ((ssync.NodeType == XmlNodeType.EndElement) && (iSsyncDepth < ssync.Depth)) 312int iRowDepth = row.Depth; 353int currentDepth = row.Depth; 374while (row.Depth > iRowDepth) 429int iColumnDepth = row.Depth; 433if (row.Depth > iColumnDepth)
System\Data\xmlsaver.cs (1)
3390get { 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)
1177internal 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 (86)
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)
214int d = NodeType == XmlNodeType.None ? -1 : Depth; 215while (await ReadAsync().ConfigureAwait(false) && d < Depth) 256if (d == Depth && NodeType == XmlNodeType.EndElement) 303int depth = Depth; 305while (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\Serialization\XmlSerializationReader.cs (1)
1909if (_r.NodeType == XmlNodeType.EndElement && _r.Depth == 0)
System\Xml\Serialization\XmlSerializer.cs (1)
850xmlReader.Depth == 0)
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)
162while (reader.Depth >= 1 && reader.ReadState == ReadState.Interactive)