7 writes to _coreReader
System.Private.Xml (7)
System\Xml\Core\XsdValidatingReader.cs (6)
128_coreReader = reader; 2139_coreReader = GetCachingReader(); 2584_coreReader = cachingReader.GetCoreReader(); 2645_coreReader = GetCachingReader(); 2708_coreReader = GetCachingReader(); 2773_coreReader = cachingReader.GetCoreReader(); // re-switch the core-reader after caching reader is done
System\Xml\Core\XsdValidatingReaderAsync.cs (1)
637_coreReader = GetCachingReader();
126 references to _coreReader
System.Private.Xml (126)
System\Xml\Core\XsdValidatingReader.cs (87)
131_coreReaderNameTable = _coreReader.NameTable; 199XmlReaderSettings? settings = _coreReader.Settings; 224XmlNodeType nodeType = _coreReader.NodeType; 253return _coreReader.Name; 268return _coreReader.LocalName; 283return _coreReader.NamespaceURI; 298return _coreReader.Prefix; 312return _coreReader.HasValue; 327return _coreReader.Value; 342return _coreReader.Depth; 351return _coreReader.BaseURI; 360return _coreReader.IsEmptyElement; 376return _coreReader.IsDefault; // This is DTD Default attribute 385return _coreReader.QuoteChar; 394return _coreReader.XmlSpace; 403return _coreReader.XmlLang; 1120string? attValue = _coreReader.GetAttribute(name); 1139string? attValue = _coreReader.GetAttribute(name, namespaceURI); 1171return _coreReader.GetAttribute(i); 1185if (_coreReader.MoveToAttribute(name)) 1229if (_coreReader.MoveToAttribute(atomizedName, ns)) 1281_coreReader.MoveToAttribute(i); 1313if (_coreReader.MoveToFirstAttribute()) 1355bool moveTo = _coreReader.MoveToNextAttribute(); 1395if (_coreReader.MoveToElement() || (int)_validationState < 0) 1412if (_coreReader.Read()) 1420if (_coreReader.EOF) 1462if (_coreReader.ReadState == ReadState.Interactive) 1487return _coreReader.EOF; 1494_coreReader.Close(); 1503return (_validationState == ValidatingReaderState.Init) ? ReadState.Initial : _coreReader.ReadState; 1513if (_coreReader.IsEmptyElement) 1521if ((_xmlSchemaInfo.IsUnionType || _xmlSchemaInfo.IsDefault) && _coreReader is XsdCachingReader) 1526_coreReader.Skip(); 1585return _coreReader.ReadAttributeValue(); 1717if (!_coreReader.IsEmptyElement) 1768if (_coreReader.IsEmptyElement) 1804if (!_coreReader.IsEmptyElement) 1962return _coreReader.Value; 2005switch (_coreReader.NodeType) 2034_validator.SetDtdSchemaInfo(_coreReader.DtdInfo); 2045if (_processInlineSchema && IsXSDRoot(_coreReader.LocalName, _coreReader.NamespaceURI) && _coreReader.Depth > 0) 2048_attributeCount = _coreReaderAttributeCount = _coreReader.AttributeCount; 2049if (!_coreReader.IsEmptyElement) 2053_inlineSchemaParser.StartParsing(_coreReader, null); 2082if (_coreReader.MoveToFirstAttribute()) 2086string objectNs = _coreReader.NamespaceURI; 2087string objectName = _coreReader.LocalName; 2093xsiSchemaLocation = _coreReader.Value; 2097xsiNoNamespaceSL = _coreReader.Value; 2101xsiType = _coreReader.Value; 2105xsiNil = _coreReader.Value; 2109if (_manageNamespaces && Ref.Equal(_coreReader.NamespaceURI, _nsXmlNs)) 2112_nsManager.AddNamespace(_coreReader.Prefix.Length == 0 ? string.Empty : _coreReader.LocalName, _coreReader.Value); 2114} while (_coreReader.MoveToNextAttribute()); 2115_coreReader.MoveToElement(); 2118_validator.ValidateElement(_coreReader.LocalName, _coreReader.NamespaceURI, _xmlSchemaInfo, xsiType, xsiNil, xsiSchemaLocation, xsiNoNamespaceSL); 2121if (_coreReader.IsEmptyElement) 2138int depth = _coreReader.Depth; 2155_attributeCount = _coreReaderAttributeCount = _coreReader.AttributeCount; 2159if (_coreReader.MoveToFirstAttribute()) 2163string localName = _coreReader.LocalName; 2164string ns = _coreReader.NamespaceURI; 2183} while (_coreReader.MoveToNextAttribute()); 2186_coreReader.MoveToElement(); 2292_currentAttrIndex = _coreReader.AttributeCount + i; 2331if (_coreReader.Read()) 2333if (_coreReader.NodeType == XmlNodeType.Element) 2335_attributeCount = _coreReaderAttributeCount = _coreReader.AttributeCount; 2414if (_coreReader is XsdCachingReader cachingReader) 2519while (_coreReader.Read()) 2527switch (_coreReader.NodeType) 2581if (_coreReader is XsdCachingReader cachingReader) 2587Debug.Assert(_coreReader.NodeType == XmlNodeType.EndElement); 2593while (_coreReader.Read()) 2595switch (_coreReader.NodeType) 2641XsdCachingReader? cachedReader = _coreReader as XsdCachingReader; 2654if (_coreReader.Read()) 2656switch (_coreReader.NodeType) 2705XsdCachingReader? cachedReader = _coreReader as XsdCachingReader; 2751_cachingReader = new XsdCachingReader(_coreReader, _lineInfo, new CachingEventHandler(CachingCallBack)); 2755_cachingReader.Reset(_coreReader);
System\Xml\Core\XsdValidatingReaderAsync.cs (39)
28return _coreReader.GetValueAsync(); 233if (_coreReader.EOF) 257if (_coreReader.EOF) 292Task<bool> readTask = _coreReader.ReadAsync(); 326if (_coreReader.ReadState == ReadState.Interactive) 351if (_coreReader.IsEmptyElement) 359if ((_xmlSchemaInfo.IsUnionType || _xmlSchemaInfo.IsDefault) && _coreReader is XsdCachingReader) 364await _coreReader.SkipAsync().ConfigureAwait(false); 500switch (_coreReader.NodeType) 527_validator.SetDtdSchemaInfo(_coreReader.DtdInfo); 544if (_processInlineSchema && IsXSDRoot(_coreReader.LocalName, _coreReader.NamespaceURI) && _coreReader.Depth > 0) 547_attributeCount = _coreReaderAttributeCount = _coreReader.AttributeCount; 548if (!_coreReader.IsEmptyElement) 552await _inlineSchemaParser.StartParsingAsync(_coreReader, null).ConfigureAwait(false); 581if (_coreReader.MoveToFirstAttribute()) 585string objectNs = _coreReader.NamespaceURI; 586string objectName = _coreReader.LocalName; 591xsiSchemaLocation = _coreReader.Value; 595xsiNoNamespaceSL = _coreReader.Value; 599xsiType = _coreReader.Value; 603xsiNil = _coreReader.Value; 607if (_manageNamespaces && Ref.Equal(_coreReader.NamespaceURI, _nsXmlNs)) 610_nsManager.AddNamespace(_coreReader.Prefix.Length == 0 ? string.Empty : _coreReader.LocalName, _coreReader.Value); 612} while (_coreReader.MoveToNextAttribute()); 613_coreReader.MoveToElement(); 616_validator.ValidateElement(_coreReader.LocalName, _coreReader.NamespaceURI, _xmlSchemaInfo, xsiType, xsiNil, xsiSchemaLocation, xsiNoNamespaceSL); 619if (_coreReader.IsEmptyElement) 636int depth = _coreReader.Depth; 654if (await _coreReader.ReadAsync().ConfigureAwait(false)) 656if (_coreReader.NodeType == XmlNodeType.Element) 658_attributeCount = _coreReaderAttributeCount = _coreReader.AttributeCount; 744XsdCachingReader? cachingReader = _coreReader as XsdCachingReader; 857while (await _coreReader.ReadAsync().ConfigureAwait(false)) 865switch (_coreReader.NodeType)