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