22 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)
50public override int Depth { get { return _reader.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.Xaml (1)
src\Microsoft.DotNet.Wpf\src\Shared\System\Windows\Markup\XmlWrappingReader.cs (1)
50public override int Depth { get { return _reader.Depth; } }
203 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)
518else if (!_compiler.IsBamlNeeded && _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)
535AddNodeToCollection(new XamlDocumentEndNode(LineNumber, LinePosition, XmlReader.Depth)); 604AddNodeToCollection(new XamlUnknownTagEndNode(LineNumber, LinePosition, XmlReader.Depth, 639int depth = XmlReader.Depth; 724XamlPropertyComplexEndNode(LineNumber, LinePosition, XmlReader.Depth)); 750LineNumber, LinePosition, XmlReader.Depth, propertyMember, 767LineNumber, LinePosition, XmlReader.Depth, propertyMember, 818XmlReader.Depth, 845LineNumber, LinePosition, XmlReader.Depth, propertyMember, 880LineNumber, LinePosition, XmlReader.Depth, propertyMember, 919AddNodeToCollection(new XamlXmlnsPropertyNode(LineNumber, LinePosition, XmlReader.Depth, 928AddNodeToCollection(new XamlPIMappingNode(LineNumber, LinePosition, XmlReader.Depth, 938AddNodeToCollection(new XamlClrEventNode(LineNumber, LinePosition, XmlReader.Depth, 963new XamlPropertyArrayEndNode(LineNumber, LinePosition, XmlReader.Depth)); 988new XamlPropertyIListEndNode(LineNumber, LinePosition, XmlReader.Depth)); 1013new XamlPropertyIDictionaryEndNode(LineNumber, LinePosition, XmlReader.Depth)); 1033new XamlDefTagNode(LineNumber, LinePosition, XmlReader.Depth, 1051AddNodeToCollection(new XamlDefAttributeNode(LineNumber, LinePosition, XmlReader.Depth, 1060AddNodeToCollection(new XamlPresentationOptionsAttributeNode(LineNumber, LinePosition, XmlReader.Depth, 1073AddNodeToCollection(new XamlDefAttributeKeyTypeNode(LineNumber, LinePosition, XmlReader.Depth, 2935ArrayList xamlNodes = _extensionParser.CompileDictionaryKeys(complexDefAttributesList, XmlReader.Depth); 2947ArrayList xamlNodes = _extensionParser.CompileAttributes(markupExtensionList, XmlReader.Depth); 3568int depth = XmlReader.Depth; 4620int depth = XmlReader.Depth; 4706WriteText(textValue, null, XmlReader.Depth); // Text for IAddChild::AddText() 4766WriteText(textValue, null, XmlReader.Depth); // Text for object/string/IList ContentProperty 4779WriteText(textValue, converterType, XmlReader.Depth); // Text for TypeConverter 4797WriteText(textValue, converterType, XmlReader.Depth); // Text for TypeConverter 5019WriteText(textValue, null, XmlReader.Depth); // Text for (Complex collection property)::Add() 5111WriteText(textValue, null, XmlReader.Depth); // Text for property IList::Add() 5142WriteText( textValue, null, XmlReader.Depth ); // Text saved for Unknown purposes. 52190 == XmlReader.Depth && XmlReader.NodeType == XmlNodeType.None))
src\Microsoft.DotNet.Wpf\src\Shared\System\Windows\Markup\XmlCompatibilityReader.cs (3)
219int elementDepth = Reader.Depth; 310int elementDepth = Reader.Depth; 683return Reader.Depth - _depthOffset;
src\Microsoft.DotNet.Wpf\src\Shared\System\Windows\Markup\XmlWrappingReader.cs (1)
50public override int Depth { get { return _reader.Depth; } }
System.Data.Common (51)
System\Data\DataSet.cs (11)
1691iCurrentDepth = reader.Depth; 1784while (!reader.EOF && reader.NodeType != XmlNodeType.EndElement && reader.NodeType != XmlNodeType.Element && reader.Depth > depth) 2115iCurrentDepth = reader.Depth; 2456int d = reader.Depth; 2485MoveToElement(reader, reader.Depth - 1 /*iCurrentDepth*/); // skip over whitespace. 2490if (reader.Depth > d) 2500MoveToElement(reader, reader.Depth - 1 /*iCurrentDepth*/); // skip over whitespace. 2502if (reader.Depth - 1 > d) 2511MoveToElement(reader, reader.Depth - 1 /*iCurrentDepth*/); // skip over whitespace. 2525while (reader.Depth > d) 2627iCurrentDepth = 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)
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.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)
219int elementDepth = Reader.Depth; 310int elementDepth = Reader.Depth; 683return Reader.Depth - _depthOffset;
src\Microsoft.DotNet.Wpf\src\Shared\System\Windows\Markup\XmlWrappingReader.cs (1)
50public override int Depth { get { return _reader.Depth; } }