1 write to _reader
System.Private.Xml (1)
System\Xml\Core\ReadContentAsBinaryHelper.cs (1)
38
_reader
= reader;
58 references to _reader
System.Private.Xml (58)
System\Xml\Core\ReadContentAsBinaryHelper.cs (29)
73
if (!
_reader
.CanReadContentAs())
75
throw
_reader
.CreateReadContentAsException(nameof(ReadContentAsBase64));
116
if (!
_reader
.CanReadContentAs())
118
throw
_reader
.CreateReadContentAsException(nameof(ReadContentAsBinHex));
159
if (
_reader
.NodeType != XmlNodeType.Element)
161
throw
_reader
.CreateReadElementContentAsException(nameof(ReadElementContentAsBase64));
202
if (
_reader
.NodeType != XmlNodeType.Element)
204
throw
_reader
.CreateReadElementContentAsException(nameof(ReadElementContentAsBinHex));
242
if (
_reader
.NodeType != XmlNodeType.EndElement)
244
throw new XmlException(SR.Xml_InvalidNodeType,
_reader
.NodeType.ToString(),
_reader
as IXmlLineInfo);
247
_reader
.Read();
276
Debug.Assert(
_reader
.NodeType == XmlNodeType.Element);
277
bool isEmpty =
_reader
.IsEmptyElement;
280
_reader
.Read();
289
if (
_reader
.NodeType != XmlNodeType.EndElement)
291
throw new XmlException(SR.Xml_InvalidNodeType,
_reader
.NodeType.ToString(),
_reader
as IXmlLineInfo);
294
_reader
.Read();
356
if ((_valueChunkLength =
_reader
.ReadValueChunk(_valueChunk!, 0, ChunkSize)) == 0)
366
string value =
_reader
.Value;
401
if (
_reader
.NodeType != XmlNodeType.EndElement)
403
throw new XmlException(SR.Xml_InvalidNodeType,
_reader
.NodeType.ToString(),
_reader
as IXmlLineInfo);
407
_reader
.Read();
416
switch (
_reader
.NodeType)
435
if (
_reader
.CanResolveEntity)
437
_reader
.ResolveEntity();
445
} while (
_reader
.Read());
System\Xml\Core\ReadContentAsBinaryHelperAsync.cs (29)
24
if (!
_reader
.CanReadContentAs())
26
throw
_reader
.CreateReadContentAsException(nameof(ReadContentAsBase64));
68
if (!
_reader
.CanReadContentAs())
70
throw
_reader
.CreateReadContentAsException(nameof(ReadContentAsBinHex));
112
if (
_reader
.NodeType != XmlNodeType.Element)
114
throw
_reader
.CreateReadElementContentAsException(nameof(ReadElementContentAsBase64));
156
if (
_reader
.NodeType != XmlNodeType.Element)
158
throw
_reader
.CreateReadElementContentAsException(nameof(ReadElementContentAsBinHex));
197
if (
_reader
.NodeType != XmlNodeType.EndElement)
199
throw new XmlException(SR.Xml_InvalidNodeType,
_reader
.NodeType.ToString(),
_reader
as IXmlLineInfo);
202
await
_reader
.ReadAsync().ConfigureAwait(false);
224
Debug.Assert(
_reader
.NodeType == XmlNodeType.Element);
225
bool isEmpty =
_reader
.IsEmptyElement;
228
await
_reader
.ReadAsync().ConfigureAwait(false);
237
if (
_reader
.NodeType != XmlNodeType.EndElement)
239
throw new XmlException(SR.Xml_InvalidNodeType,
_reader
.NodeType.ToString(),
_reader
as IXmlLineInfo);
242
await
_reader
.ReadAsync().ConfigureAwait(false);
278
if ((_valueChunkLength = await
_reader
.ReadValueChunkAsync(_valueChunk!, 0, ChunkSize).ConfigureAwait(false)) == 0)
288
string value = await
_reader
.GetValueAsync().ConfigureAwait(false);
323
if (
_reader
.NodeType != XmlNodeType.EndElement)
325
throw new XmlException(SR.Xml_InvalidNodeType,
_reader
.NodeType.ToString(),
_reader
as IXmlLineInfo);
329
await
_reader
.ReadAsync().ConfigureAwait(false);
338
switch (
_reader
.NodeType)
357
if (
_reader
.CanResolveEntity)
359
_reader
.ResolveEntity();
367
} while (await
_reader
.ReadAsync().ConfigureAwait(false));