1 write to reader
dotnet-svcutil-lib (1)
FrameworkFork\Microsoft.Xml\Xml\Core\XmlWrappingReader.cs (1)
31
this.
reader
= baseReader;
272 references to reader
dotnet-svcutil-lib (272)
FrameworkFork\Microsoft.Xml\Xml\Core\XmlCharCheckingReader.cs (34)
83
XmlReaderSettings settings =
reader
.Settings;
124
return base.
reader
.MoveToAttribute(name);
133
return base.
reader
.MoveToAttribute(name, ns);
142
base.
reader
.MoveToAttribute(i);
151
return base.
reader
.MoveToFirstAttribute();
160
return base.
reader
.MoveToNextAttribute();
169
return base.
reader
.MoveToElement();
178
if (base.
reader
.ReadState == ReadState.Initial)
193
if (!base.
reader
.Read())
204
XmlNodeType nodeType = base.
reader
.NodeType;
249
ValidateQName(base.
reader
.Prefix, base.
reader
.LocalName);
252
if (base.
reader
.MoveToFirstAttribute())
256
ValidateQName(base.
reader
.Prefix, base.
reader
.LocalName);
257
CheckCharacters(base.
reader
.Value);
258
} while (base.
reader
.MoveToNextAttribute());
260
base.
reader
.MoveToElement();
269
CheckCharacters(base.
reader
.Value);
277
ValidateQName(base.
reader
.Name);
288
ValidateQName(base.
reader
.Name);
289
CheckCharacters(base.
reader
.Value);
300
CheckCharacters(base.
reader
.Value);
315
ValidateQName(base.
reader
.Name);
316
CheckCharacters(base.
reader
.Value);
319
str = base.
reader
.GetAttribute("SYSTEM");
325
str = base.
reader
.GetAttribute("PUBLIC");
344
CheckWhitespace(base.
reader
.Value);
351
CheckWhitespace(base.
reader
.Value);
358
ValidateQName(base.
reader
.Prefix, base.
reader
.LocalName);
377
return base.
reader
.ReadState == ReadState.Closed ? ReadState.Closed : ReadState.Initial;
383
return base.
reader
.ReadState;
394
return base.
reader
.ReadAttributeValue();
FrameworkFork\Microsoft.Xml\Xml\Core\XmlCharCheckingReaderAsync.cs (24)
29
if (base.
reader
.ReadState == ReadState.Initial)
44
if (!await base.
reader
.ReadAsync().ConfigureAwait(false))
55
XmlNodeType nodeType = base.
reader
.NodeType;
100
ValidateQName(base.
reader
.Prefix, base.
reader
.LocalName);
103
if (base.
reader
.MoveToFirstAttribute())
107
ValidateQName(base.
reader
.Prefix, base.
reader
.LocalName);
108
CheckCharacters(base.
reader
.Value);
109
} while (base.
reader
.MoveToNextAttribute());
111
base.
reader
.MoveToElement();
120
CheckCharacters(await base.
reader
.GetValueAsync().ConfigureAwait(false));
128
ValidateQName(base.
reader
.Name);
139
ValidateQName(base.
reader
.Name);
140
CheckCharacters(base.
reader
.Value);
151
CheckCharacters(base.
reader
.Value);
166
ValidateQName(base.
reader
.Name);
167
CheckCharacters(base.
reader
.Value);
170
str = base.
reader
.GetAttribute("SYSTEM");
176
str = base.
reader
.GetAttribute("PUBLIC");
195
CheckWhitespace(await base.
reader
.GetValueAsync().ConfigureAwait(false));
202
CheckWhitespace(await base.
reader
.GetValueAsync().ConfigureAwait(false));
209
ValidateQName(base.
reader
.Prefix, base.
reader
.LocalName);
FrameworkFork\Microsoft.Xml\Xml\Core\XmlSubtreeReader.cs (115)
119
return (_useCurNode) ? _curNode.type :
reader
.NodeType;
127
return (_useCurNode) ? _curNode.name :
reader
.Name;
135
return (_useCurNode) ? _curNode.localName :
reader
.LocalName;
143
return (_useCurNode) ? _curNode.namespaceUri :
reader
.NamespaceURI;
151
return (_useCurNode) ? _curNode.prefix :
reader
.Prefix;
159
return (_useCurNode) ? _curNode.value :
reader
.Value;
167
int depth =
reader
.Depth - _initialDepth;
187
return
reader
.BaseURI;
195
return
reader
.IsEmptyElement;
211
if (
reader
.ReadState == ReadState.Error)
233
return
reader
.NameTable;
241
return InAttributeActiveState ?
reader
.AttributeCount + _nsAttrCount : 0;
251
string attr =
reader
.GetAttribute(name);
272
string attr =
reader
.GetAttribute(name, namespaceURI);
293
int n =
reader
.AttributeCount;
296
return
reader
.GetAttribute(i);
314
if (
reader
.MoveToAttribute(name))
337
if (
reader
.MoveToAttribute(name, ns))
360
int n =
reader
.AttributeCount;
363
reader
.MoveToAttribute(i);
383
if (
reader
.MoveToFirstAttribute())
402
if (_curNsAttr == -1 &&
reader
.MoveToNextAttribute())
426
Debug.Assert(
reader
.NodeType == XmlNodeType.Element);
431
return
reader
.MoveToElement();
443
return
reader
.ReadAttributeValue();
472
reader
.MoveToElement();
473
Debug.Assert(
reader
.Depth >= _initialDepth);
474
if (
reader
.Depth == _initialDepth)
476
if (
reader
.NodeType == XmlNodeType.EndElement ||
477
(
reader
.NodeType == XmlNodeType.Element &&
reader
.IsEmptyElement))
483
Debug.Assert(
reader
.NodeType == XmlNodeType.Element && !
reader
.IsEmptyElement);
485
if (
reader
.Read())
543
reader
.MoveToElement();
544
Debug.Assert(
reader
.Depth >= _initialDepth);
546
if (
reader
.Depth == _initialDepth &&
reader
.NodeType == XmlNodeType.Element && !
reader
.IsEmptyElement)
548
reader
.Read();
551
while (
reader
.Depth > _initialDepth &&
reader
.Read())
580
reader
.MoveToElement();
581
Debug.Assert(
reader
.Depth >= _initialDepth);
582
if (
reader
.Depth == _initialDepth)
584
if (
reader
.NodeType == XmlNodeType.Element && !
reader
.IsEmptyElement)
587
if (
reader
.Read())
589
while (
reader
.NodeType != XmlNodeType.EndElement &&
reader
.Depth > _initialDepth)
591
reader
.Skip();
595
Debug.Assert(
reader
.NodeType == XmlNodeType.EndElement ||
596
reader
.NodeType == XmlNodeType.Element &&
reader
.IsEmptyElement ||
597
reader
.ReadState != ReadState.Interactive);
603
if (
reader
.NodeType == XmlNodeType.Element && !
reader
.IsEmptyElement)
607
reader
.Skip();
610
Debug.Assert(
reader
.Depth >= _initialDepth);
656
object value =
reader
.ReadContentAsObject();
672
bool value =
reader
.ReadContentAsBoolean();
688
DateTime value =
reader
.ReadContentAsDateTime();
704
double value =
reader
.ReadContentAsDouble();
720
float value =
reader
.ReadContentAsFloat();
736
decimal value =
reader
.ReadContentAsDecimal();
752
int value =
reader
.ReadContentAsInt();
768
long value =
reader
.ReadContentAsLong();
784
string value =
reader
.ReadContentAsString();
800
object value =
reader
.ReadContentAs(returnType, namespaceResolver);
815
return
reader
.CanReadBinaryContent;
838
if (_curNsAttr != -1 &&
reader
.CanReadBinaryContent)
868
return
reader
.ReadContentAsBase64(buffer, index, count);
879
int read =
reader
.ReadContentAsBase64(buffer, index, count);
918
int read =
reader
.ReadContentAsBase64(buffer, index, count);
925
throw new XmlException(ResXml.Xml_InvalidNodeType,
reader
.NodeType.ToString(),
reader
as IXmlLineInfo);
933
if (
reader
.Depth == _initialDepth)
974
if (_curNsAttr != -1 &&
reader
.CanReadBinaryContent)
1004
return
reader
.ReadContentAsBinHex(buffer, index, count);
1015
int read =
reader
.ReadContentAsBinHex(buffer, index, count);
1053
int read =
reader
.ReadContentAsBinHex(buffer, index, count);
1060
throw new XmlException(ResXml.Xml_InvalidNodeType,
reader
.NodeType.ToString(),
reader
as IXmlLineInfo);
1068
if (
reader
.Depth == _initialDepth)
1094
return
reader
.CanReadValueChunk;
1111
if (_curNsAttr != -1 &&
reader
.CanReadValueChunk)
1135
return
reader
.ReadValueChunk(buffer, index, count);
1172
IXmlLineInfo lineInfo =
reader
as IXmlLineInfo;
1188
IXmlLineInfo lineInfo =
reader
as IXmlLineInfo;
1200
return
reader
is IXmlLineInfo;
1238
switch (
reader
.NodeType)
1243
string prefix =
reader
.Prefix;
1244
string ns =
reader
.NamespaceURI;
1250
if (
reader
.MoveToFirstAttribute())
1254
prefix =
reader
.Prefix;
1255
ns =
reader
.NamespaceURI;
1261
_nsManager.AddNamespace(string.Empty,
reader
.Value);
1266
prefix =
reader
.LocalName;
1267
_nsManager.AddNamespace(prefix,
reader
.Value);
1275
} while (
reader
.MoveToNextAttribute());
1276
reader
.MoveToElement();
1279
if (
reader
.IsEmptyElement)
1316
_nsAttributes[index].Set(XmlNodeType.Attribute, prefix, _xmlns,
reader
.NameTable.Add(string.Concat(_xmlns, ":", prefix)), _xmlnsUri, ns);
1348
reader
.MoveToElement();
1358
throw
reader
.CreateReadElementContentAsException("ReadElementContentAsBase64");
1372
throw new XmlException(ResXml.Xml_InvalidNodeType,
reader
.NodeType.ToString(),
reader
as IXmlLineInfo);
1392
while (
reader
.ReadContentAsBase64(bytes, 0, 256) > 0) ;
1396
while (
reader
.ReadContentAsBinHex(bytes, 0, 256) > 0) ;
1401
throw new XmlException(ResXml.Xml_InvalidNodeType,
reader
.NodeType.ToString(),
reader
as IXmlLineInfo);
1409
if (
reader
.Depth == _initialDepth)
1426
while (
reader
.ReadContentAsBase64(bytes, 0, 256) > 0) ;
1430
while (
reader
.ReadContentAsBinHex(bytes, 0, 256) > 0) ;
1437
if (
reader
.Depth == _initialDepth)
FrameworkFork\Microsoft.Xml\Xml\Core\XmlSubtreeReaderAsync.cs (57)
29
return
reader
.GetValueAsync();
46
reader
.MoveToElement();
47
Debug.Assert(
reader
.Depth >= _initialDepth);
48
if (
reader
.Depth == _initialDepth)
50
if (
reader
.NodeType == XmlNodeType.EndElement ||
51
(
reader
.NodeType == XmlNodeType.Element &&
reader
.IsEmptyElement))
57
Debug.Assert(
reader
.NodeType == XmlNodeType.Element && !
reader
.IsEmptyElement);
59
if (await
reader
.ReadAsync().ConfigureAwait(false))
117
reader
.MoveToElement();
118
Debug.Assert(
reader
.Depth >= _initialDepth);
119
if (
reader
.Depth == _initialDepth)
121
if (
reader
.NodeType == XmlNodeType.Element && !
reader
.IsEmptyElement)
124
if (await
reader
.ReadAsync().ConfigureAwait(false))
126
while (
reader
.NodeType != XmlNodeType.EndElement &&
reader
.Depth > _initialDepth)
128
await
reader
.SkipAsync().ConfigureAwait(false);
132
Debug.Assert(
reader
.NodeType == XmlNodeType.EndElement ||
133
reader
.NodeType == XmlNodeType.Element &&
reader
.IsEmptyElement ||
134
reader
.ReadState != ReadState.Interactive);
140
if (
reader
.NodeType == XmlNodeType.Element && !
reader
.IsEmptyElement)
144
await
reader
.SkipAsync().ConfigureAwait(false);
147
Debug.Assert(
reader
.Depth >= _initialDepth);
193
object value = await
reader
.ReadContentAsObjectAsync().ConfigureAwait(false);
209
string value = await
reader
.ReadContentAsStringAsync().ConfigureAwait(false);
225
object value = await
reader
.ReadContentAsAsync(returnType, namespaceResolver).ConfigureAwait(false);
255
if (_curNsAttr != -1 &&
reader
.CanReadBinaryContent)
285
return await
reader
.ReadContentAsBase64Async(buffer, index, count).ConfigureAwait(false);
296
int read = await
reader
.ReadContentAsBase64Async(buffer, index, count).ConfigureAwait(false);
335
int read = await
reader
.ReadContentAsBase64Async(buffer, index, count).ConfigureAwait(false);
342
throw new XmlException(ResXml.Xml_InvalidNodeType,
reader
.NodeType.ToString(),
reader
as IXmlLineInfo);
350
if (
reader
.Depth == _initialDepth)
391
if (_curNsAttr != -1 &&
reader
.CanReadBinaryContent)
421
return await
reader
.ReadContentAsBinHexAsync(buffer, index, count).ConfigureAwait(false);
432
int read = await
reader
.ReadContentAsBinHexAsync(buffer, index, count).ConfigureAwait(false);
470
int read = await
reader
.ReadContentAsBinHexAsync(buffer, index, count).ConfigureAwait(false);
477
throw new XmlException(ResXml.Xml_InvalidNodeType,
reader
.NodeType.ToString(),
reader
as IXmlLineInfo);
485
if (
reader
.Depth == _initialDepth)
520
if (_curNsAttr != -1 &&
reader
.CanReadValueChunk)
544
return
reader
.ReadValueChunkAsync(buffer, index, count);
562
throw
reader
.CreateReadElementContentAsException("ReadElementContentAsBase64");
576
throw new XmlException(ResXml.Xml_InvalidNodeType,
reader
.NodeType.ToString(),
reader
as IXmlLineInfo);
596
while (await
reader
.ReadContentAsBase64Async(bytes, 0, 256).ConfigureAwait(false) > 0) ;
600
while (await
reader
.ReadContentAsBinHexAsync(bytes, 0, 256).ConfigureAwait(false) > 0) ;
605
throw new XmlException(ResXml.Xml_InvalidNodeType,
reader
.NodeType.ToString(),
reader
as IXmlLineInfo);
613
if (
reader
.Depth == _initialDepth)
630
while (await
reader
.ReadContentAsBase64Async(bytes, 0, 256).ConfigureAwait(false) > 0) ;
634
while (await
reader
.ReadContentAsBinHexAsync(bytes, 0, 256).ConfigureAwait(false) > 0) ;
641
if (
reader
.Depth == _initialDepth)
FrameworkFork\Microsoft.Xml\Xml\Core\XmlWrappingReader.cs (39)
38
public override XmlReaderSettings Settings { get { return
reader
.Settings; } }
39
public override XmlNodeType NodeType { get { return
reader
.NodeType; } }
40
public override string Name { get { return
reader
.Name; } }
41
public override string LocalName { get { return
reader
.LocalName; } }
42
public override string NamespaceURI { get { return
reader
.NamespaceURI; } }
43
public override string Prefix { get { return
reader
.Prefix; } }
44
public override bool HasValue { get { return
reader
.HasValue; } }
45
public override string Value { get { return
reader
.Value; } }
46
public override int Depth { get { return
reader
.Depth; } }
47
public override string BaseURI { get { return
reader
.BaseURI; } }
48
public override bool IsEmptyElement { get { return
reader
.IsEmptyElement; } }
49
public override bool IsDefault { get { return
reader
.IsDefault; } }
50
public override XmlSpace XmlSpace { get { return
reader
.XmlSpace; } }
51
public override string XmlLang { get { return
reader
.XmlLang; } }
52
public override System.Type ValueType { get { return
reader
.ValueType; } }
53
public override int AttributeCount { get { return
reader
.AttributeCount; } }
54
public override bool EOF { get { return
reader
.EOF; } }
55
public override ReadState ReadState { get { return
reader
.ReadState; } }
56
public override bool HasAttributes { get { return
reader
.HasAttributes; } }
57
public override XmlNameTable NameTable { get { return
reader
.NameTable; } }
58
public override bool CanResolveEntity { get { return
reader
.CanResolveEntity; } }
60
public override IXmlSchemaInfo SchemaInfo { get { return
reader
.SchemaInfo; } }
61
public override char QuoteChar { get { return
reader
.QuoteChar; } }
65
return
reader
.GetAttribute(name);
70
return
reader
.GetAttribute(name, namespaceURI);
75
return
reader
.GetAttribute(i);
80
return
reader
.MoveToAttribute(name);
85
return
reader
.MoveToAttribute(name, ns);
90
reader
.MoveToAttribute(i);
95
return
reader
.MoveToFirstAttribute();
100
return
reader
.MoveToNextAttribute();
105
return
reader
.MoveToElement();
110
return
reader
.Read();
115
reader
.Close();
120
reader
.Skip();
125
return
reader
.LookupNamespace(prefix);
130
reader
.ResolveEntity();
135
return
reader
.ReadAttributeValue();
169
return
reader
.DtdInfo;
FrameworkFork\Microsoft.Xml\Xml\Core\XmlWrappingReaderAsync.cs (3)
22
return
reader
.GetValueAsync();
27
return
reader
.ReadAsync();
32
return
reader
.SkipAsync();