1 write to reader
System.Xml (1)
System\Xml\Core\ReadContentAsBinaryHelper.cs (1)
41
this.
reader
= reader;
58 references to reader
System.Xml (58)
System\Xml\Core\ReadContentAsBinaryHelper.cs (29)
79
if ( !
reader
.CanReadContentAs() ) {
80
throw
reader
.CreateReadContentAsException( "ReadContentAsBase64" );
126
if ( !
reader
.CanReadContentAs() ) {
127
throw
reader
.CreateReadContentAsException( "ReadContentAsBinHex" );
173
if (
reader
.NodeType != XmlNodeType.Element ) {
174
throw
reader
.CreateReadElementContentAsException( "ReadElementContentAsBase64" );
220
if (
reader
.NodeType != XmlNodeType.Element ) {
221
throw
reader
.CreateReadElementContentAsException( "ReadElementContentAsBinHex" );
255
if (
reader
.NodeType != XmlNodeType.EndElement ) {
256
throw new XmlException( Res.Xml_InvalidNodeType,
reader
.NodeType.ToString(),
reader
as IXmlLineInfo );
259
reader
.Read();
284
Debug.Assert(
reader
.NodeType == XmlNodeType.Element );
285
bool isEmpty =
reader
.IsEmptyElement;
288
reader
.Read();
295
if (
reader
.NodeType != XmlNodeType.EndElement ) {
296
throw new XmlException( Res.Xml_InvalidNodeType,
reader
.NodeType.ToString(),
reader
as IXmlLineInfo );
299
reader
.Read();
348
if ( ( valueChunkLength =
reader
.ReadValueChunk( valueChunk, 0, ChunkSize ) ) == 0 ) {
356
string value =
reader
.Value;
386
if (
reader
.NodeType != XmlNodeType.EndElement ) {
387
throw new XmlException( Res.Xml_InvalidNodeType,
reader
.NodeType.ToString(),
reader
as IXmlLineInfo );
391
reader
.Read();
398
switch (
reader
.NodeType ) {
415
if (
reader
.CanResolveEntity ) {
416
reader
.ResolveEntity();
424
} while (
reader
.Read() );
System\Xml\Core\ReadContentAsBinaryHelperAsync.cs (29)
29
if ( !
reader
.CanReadContentAs() ) {
30
throw
reader
.CreateReadContentAsException( "ReadContentAsBase64" );
76
if ( !
reader
.CanReadContentAs() ) {
77
throw
reader
.CreateReadContentAsException( "ReadContentAsBinHex" );
123
if (
reader
.NodeType != XmlNodeType.Element ) {
124
throw
reader
.CreateReadElementContentAsException( "ReadElementContentAsBase64" );
170
if (
reader
.NodeType != XmlNodeType.Element ) {
171
throw
reader
.CreateReadElementContentAsException( "ReadElementContentAsBinHex" );
205
if (
reader
.NodeType != XmlNodeType.EndElement ) {
206
throw new XmlException( Res.Xml_InvalidNodeType,
reader
.NodeType.ToString(),
reader
as IXmlLineInfo );
209
await
reader
.ReadAsync().ConfigureAwait(false);
228
Debug.Assert(
reader
.NodeType == XmlNodeType.Element );
229
bool isEmpty =
reader
.IsEmptyElement;
232
await
reader
.ReadAsync().ConfigureAwait(false);
239
if (
reader
.NodeType != XmlNodeType.EndElement ) {
240
throw new XmlException( Res.Xml_InvalidNodeType,
reader
.NodeType.ToString(),
reader
as IXmlLineInfo );
243
await
reader
.ReadAsync().ConfigureAwait(false);
272
if ( ( valueChunkLength = await
reader
.ReadValueChunkAsync( valueChunk, 0, ChunkSize ).ConfigureAwait(false) ) == 0 ) {
280
string value = await
reader
.GetValueAsync().ConfigureAwait(false);
310
if (
reader
.NodeType != XmlNodeType.EndElement ) {
311
throw new XmlException( Res.Xml_InvalidNodeType,
reader
.NodeType.ToString(),
reader
as IXmlLineInfo );
315
await
reader
.ReadAsync().ConfigureAwait(false);
322
switch (
reader
.NodeType ) {
339
if (
reader
.CanResolveEntity ) {
340
reader
.ResolveEntity();
348
} while ( await
reader
.ReadAsync().ConfigureAwait(false) );