233 references to Reader
System.Private.Xml (233)
System\Xml\Serialization\PrimitiveXmlSerializers.cs (123)
251
Reader
.MoveToContent();
252
if (
Reader
.NodeType == System.Xml.XmlNodeType.Element)
254
if (((object)
Reader
.LocalName == (object)_id1_string && (object)
Reader
.NamespaceURI == (object)_id2_Item))
262
o =
Reader
.ReadElementString();
280
Reader
.MoveToContent();
281
if (
Reader
.NodeType == System.Xml.XmlNodeType.Element)
283
if (((object)
Reader
.LocalName == (object)_id3_int && (object)
Reader
.NamespaceURI == (object)_id2_Item))
286
o = System.Xml.XmlConvert.ToInt32(
Reader
.ReadElementString());
304
Reader
.MoveToContent();
305
if (
Reader
.NodeType == System.Xml.XmlNodeType.Element)
307
if (((object)
Reader
.LocalName == (object)_id4_boolean && (object)
Reader
.NamespaceURI == (object)_id2_Item))
310
o = System.Xml.XmlConvert.ToBoolean(
Reader
.ReadElementString());
328
Reader
.MoveToContent();
329
if (
Reader
.NodeType == System.Xml.XmlNodeType.Element)
331
if (((object)
Reader
.LocalName == (object)_id5_short && (object)
Reader
.NamespaceURI == (object)_id2_Item))
334
o = System.Xml.XmlConvert.ToInt16(
Reader
.ReadElementString());
352
Reader
.MoveToContent();
353
if (
Reader
.NodeType == System.Xml.XmlNodeType.Element)
355
if (((object)
Reader
.LocalName == (object)_id6_long && (object)
Reader
.NamespaceURI == (object)_id2_Item))
358
o = System.Xml.XmlConvert.ToInt64(
Reader
.ReadElementString());
376
Reader
.MoveToContent();
377
if (
Reader
.NodeType == System.Xml.XmlNodeType.Element)
379
if (((object)
Reader
.LocalName == (object)_id7_float && (object)
Reader
.NamespaceURI == (object)_id2_Item))
382
o = System.Xml.XmlConvert.ToSingle(
Reader
.ReadElementString());
400
Reader
.MoveToContent();
401
if (
Reader
.NodeType == System.Xml.XmlNodeType.Element)
403
if (((object)
Reader
.LocalName == (object)_id8_double && (object)
Reader
.NamespaceURI == (object)_id2_Item))
406
o = System.Xml.XmlConvert.ToDouble(
Reader
.ReadElementString());
424
Reader
.MoveToContent();
425
if (
Reader
.NodeType == System.Xml.XmlNodeType.Element)
427
if (((object)
Reader
.LocalName == (object)_id9_decimal && (object)
Reader
.NamespaceURI == (object)_id2_Item))
430
o = System.Xml.XmlConvert.ToDecimal(
Reader
.ReadElementString());
448
Reader
.MoveToContent();
449
if (
Reader
.NodeType == System.Xml.XmlNodeType.Element)
451
if (((object)
Reader
.LocalName == (object)_id10_dateTime && (object)
Reader
.NamespaceURI == (object)_id2_Item))
454
o = ToDateTime(
Reader
.ReadElementString());
472
Reader
.MoveToContent();
473
if (
Reader
.NodeType == System.Xml.XmlNodeType.Element)
475
if (((object)
Reader
.LocalName == (object)_id20_dateTimeOffset && (object)
Reader
.NamespaceURI == (object)_id2_Item))
477
if (
Reader
.IsEmptyElement)
479
Reader
.Skip();
484
o = System.Xml.XmlConvert.ToDateTimeOffset(
Reader
.ReadElementString());
502
Reader
.MoveToContent();
503
if (
Reader
.NodeType == System.Xml.XmlNodeType.Element)
505
if (((object)
Reader
.LocalName == (object)_id11_unsignedByte && (object)
Reader
.NamespaceURI == (object)_id2_Item))
508
o = System.Xml.XmlConvert.ToByte(
Reader
.ReadElementString());
526
Reader
.MoveToContent();
527
if (
Reader
.NodeType == System.Xml.XmlNodeType.Element)
529
if (((object)
Reader
.LocalName == (object)_id12_byte && (object)
Reader
.NamespaceURI == (object)_id2_Item))
532
o = System.Xml.XmlConvert.ToSByte(
Reader
.ReadElementString());
550
Reader
.MoveToContent();
551
if (
Reader
.NodeType == System.Xml.XmlNodeType.Element)
553
if (((object)
Reader
.LocalName == (object)_id13_unsignedShort && (object)
Reader
.NamespaceURI == (object)_id2_Item))
556
o = System.Xml.XmlConvert.ToUInt16(
Reader
.ReadElementString());
574
Reader
.MoveToContent();
575
if (
Reader
.NodeType == System.Xml.XmlNodeType.Element)
577
if (((object)
Reader
.LocalName == (object)_id14_unsignedInt && (object)
Reader
.NamespaceURI == (object)_id2_Item))
580
o = System.Xml.XmlConvert.ToUInt32(
Reader
.ReadElementString());
598
Reader
.MoveToContent();
599
if (
Reader
.NodeType == System.Xml.XmlNodeType.Element)
601
if (((object)
Reader
.LocalName == (object)_id15_unsignedLong && (object)
Reader
.NamespaceURI == (object)_id2_Item))
604
o = System.Xml.XmlConvert.ToUInt64(
Reader
.ReadElementString());
622
Reader
.MoveToContent();
623
if (
Reader
.NodeType == System.Xml.XmlNodeType.Element)
625
if (((object)
Reader
.LocalName == (object)_id16_base64Binary && (object)
Reader
.NamespaceURI == (object)_id2_Item))
651
Reader
.MoveToContent();
652
if (
Reader
.NodeType == System.Xml.XmlNodeType.Element)
654
if (((object)
Reader
.LocalName == (object)_id17_guid && (object)
Reader
.NamespaceURI == (object)_id2_Item))
657
o = System.Xml.XmlConvert.ToGuid(
Reader
.ReadElementString());
675
Reader
.MoveToContent();
676
if (
Reader
.NodeType == System.Xml.XmlNodeType.Element)
678
if (((object)
Reader
.LocalName == (object)_id19_TimeSpan && (object)
Reader
.NamespaceURI == (object)_id2_Item))
680
if (
Reader
.IsEmptyElement)
682
Reader
.Skip();
687
o = System.Xml.XmlConvert.ToTimeSpan(
Reader
.ReadElementString());
705
Reader
.MoveToContent();
706
if (
Reader
.NodeType == System.Xml.XmlNodeType.Element)
708
if (((object)
Reader
.LocalName == (object)_id18_char && (object)
Reader
.NamespaceURI == (object)_id2_Item))
711
o = ToChar(
Reader
.ReadElementString());
729
Reader
.MoveToContent();
730
if (
Reader
.NodeType == System.Xml.XmlNodeType.Element)
732
if (((object)
Reader
.LocalName == (object)_id1_QName && (object)
Reader
.NamespaceURI == (object)_id2_Item))
785
_id4_boolean =
Reader
.NameTable.Add(@"boolean");
786
_id14_unsignedInt =
Reader
.NameTable.Add(@"unsignedInt");
787
_id15_unsignedLong =
Reader
.NameTable.Add(@"unsignedLong");
788
_id7_float =
Reader
.NameTable.Add(@"float");
789
_id10_dateTime =
Reader
.NameTable.Add(@"dateTime");
790
_id20_dateTimeOffset =
Reader
.NameTable.Add(@"dateTimeOffset");
791
_id6_long =
Reader
.NameTable.Add(@"long");
792
_id9_decimal =
Reader
.NameTable.Add(@"decimal");
793
_id8_double =
Reader
.NameTable.Add(@"double");
794
_id17_guid =
Reader
.NameTable.Add(@"guid");
795
_id19_TimeSpan =
Reader
.NameTable.Add(@"TimeSpan");
796
_id2_Item =
Reader
.NameTable.Add(@"");
797
_id13_unsignedShort =
Reader
.NameTable.Add(@"unsignedShort");
798
_id18_char =
Reader
.NameTable.Add(@"char");
799
_id3_int =
Reader
.NameTable.Add(@"int");
800
_id12_byte =
Reader
.NameTable.Add(@"byte");
801
_id16_base64Binary =
Reader
.NameTable.Add(@"base64Binary");
802
_id11_unsignedByte =
Reader
.NameTable.Add(@"unsignedByte");
803
_id5_short =
Reader
.NameTable.Add(@"short");
804
_id1_string =
Reader
.NameTable.Add(@"string");
805
_id1_QName =
Reader
.NameTable.Add(@"QName");
System\Xml\Serialization\ReflectionXmlSerializationReader.cs (86)
95
Reader
.MoveToContent();
104
Reader
.MoveToContent();
105
while (
Reader
.NodeType != XmlNodeType.EndElement &&
Reader
.NodeType != XmlNodeType.None)
107
if (
Reader
.IsStartElement(element.Name, elementNs))
122
Reader
.MoveToContent();
250
Reader
.MoveToElement();
255
if (
Reader
.IsEmptyElement)
257
Reader
.Skip();
258
Reader
.MoveToContent();
262
Reader
.ReadStartElement();
265
Reader
.MoveToContent();
266
while (
Reader
.NodeType != XmlNodeType.EndElement &&
Reader
.NodeType != XmlNodeType.None)
269
Reader
.MoveToContent();
316
Reader
.MoveToContent();
324
Reader
.MoveToContent();
325
while (
Reader
.NodeType == XmlNodeType.Element)
327
string? root =
Reader
.GetAttribute("root", Soap.Encoding);
332
Reader
.MoveToContent();
339
if (!XmlNodeEqual(
Reader
, name, ns))
345
isEmptyWrapper =
Reader
.IsEmptyElement;
346
Reader
.ReadStartElement();
385
Reader
.MoveToContent();
386
while (
Reader
.NodeType != XmlNodeType.EndElement &&
Reader
.NodeType != XmlNodeType.None)
397
if (
Reader
.GetAttribute("id", null) != null)
409
Reader
.MoveToContent();
453
Reader
.MoveToContent();
480
if (
Reader
.NodeType == XmlNodeType.Element)
484
if (
Reader
.GetAttribute("root", Soap.Encoding) == "0")
531
Reader
.MoveToContent();
533
while (
Reader
.NodeType != XmlNodeType.EndElement &&
Reader
.NodeType != XmlNodeType.None)
536
Reader
.MoveToContent();
678
if ((
Reader
.NodeType == XmlNodeType.Text ||
679
Reader
.NodeType == XmlNodeType.CDATA ||
680
Reader
.NodeType == XmlNodeType.Whitespace ||
681
Reader
.NodeType == XmlNodeType.SignificantWhitespace))
688
value = Document.CreateTextNode(
Reader
.ReadString());
701
value = CollapseWhitespace(
Reader
.ReadString());
705
value =
Reader
.ReadString();
716
value = WritePrimitive(text.Mapping, (state) => ((ReflectionXmlSerializationReader)state).
Reader
.ReadString(), this);
782
else if (ele.Name ==
Reader
.LocalName && ns ==
Reader
.NamespaceURI)
869
&& (
Reader
.IsEmptyElement))
871
Reader
.Skip();
873
else if (element.Mapping.TypeDesc!.Type == typeof(TimeSpan) &&
Reader
.IsEmptyElement)
875
Reader
.Skip();
878
else if (element.Mapping.TypeDesc!.Type == typeof(DateTimeOffset) &&
Reader
.IsEmptyElement)
880
Reader
.Skip();
902
value = WritePrimitive(element.Mapping, readFunc,
Reader
);
937
Reader
.Skip();
1143
if ((readOnly && o == null) ||
Reader
.IsEmptyElement)
1145
Reader
.Skip();
1149
Reader
.ReadStartElement();
1150
Reader
.MoveToContent();
1151
while (
Reader
.NodeType != XmlNodeType.EndElement &&
Reader
.NodeType != XmlNodeType.None)
1154
Reader
.MoveToContent();
1261
string source =
Reader
.ReadElementString();
1371
Reader
.MoveToElement();
1372
if (
Reader
.IsEmptyElement)
1374
Reader
.Skip();
1378
Reader
.ReadStartElement();
1379
Reader
.MoveToContent();
1380
while (
Reader
.NodeType != XmlNodeType.EndElement &&
Reader
.NodeType != XmlNodeType.None)
1383
Reader
.MoveToContent();
1731
Reader
.MoveToElement();
1732
if (
Reader
.IsEmptyElement)
1734
Reader
.Skip();
1738
Reader
.ReadStartElement();
1775
Reader
.ReadStartElement();
1779
return reader.CollapseWhitespace(reader.
Reader
.ReadString());
1838
while (
Reader
.MoveToNextAttribute())
1857
memberFound = XmlNodeEqual(
Reader
, attribute.Name, XmlReservedNs.NsXml);
1861
memberFound = XmlNodeEqual(
Reader
, attribute.Name, attribute.Form == XmlSchemaForm.Qualified ? attribute.Namespace : string.Empty);
1880
if (IsXmlnsAttribute(
Reader
.Name))
1883
xmlnsMember.XmlnsSource(
Reader
.Name.Length == 5 ? string.Empty :
Reader
.LocalName,
Reader
.Value);
1890
else if (!IsXmlnsAttribute(
Reader
.Name))
1899
var attr = (Document.ReadNode(
Reader
) as XmlAttribute)!;
1934
string listValues =
Reader
.Value;
1946
value = WritePrimitive(attribute.Mapping!, (state) => ((XmlReader)state).Value,
Reader
);
System\Xml\Serialization\XmlSerializationReader.cs (24)
1253
if (
Reader
is IXmlLineInfo lineInfo)
1410
Reader
.Read();
1875
string elemLocalName =
Reader
.LocalName;
1876
string elemNs =
Reader
.NamespaceURI;
1877
string elemName =
Reader
.Name;
1882
if (
Reader
.NodeType == XmlNodeType.Attribute)
1885
attr.Value =
Reader
.Value;
1893
while (
Reader
.MoveToNextAttribute())
1895
if (IsXmlnsAttribute(
Reader
.Name) || (
Reader
.Name == "id" && (!_soap12 ||
Reader
.NamespaceURI == Soap12.Encoding)))
1897
if ((object)
Reader
.LocalName == (object)_typeID &&
1898
((object)
Reader
.NamespaceURI == (object)_instanceNsID ||
1899
(object)
Reader
.NamespaceURI == (object)_instanceNs2000ID ||
1900
(object)
Reader
.NamespaceURI == (object)_instanceNs1999ID
1904
string value =
Reader
.Value;
1907
xsiTypeNs =
Reader
.LookupNamespace((colon >= 0) ? value.Substring(0, colon) : "");
1934
Reader
.MoveToElement();
1935
if (
Reader
.IsEmptyElement)
1937
Reader
.Skip();
1941
Reader
.ReadStartElement();
1942
Reader
.MoveToContent();
1943
while (
Reader
.NodeType != System.Xml.XmlNodeType.EndElement)
1948
Reader
.MoveToContent();