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