4 writes to reader
System.Data.Services.Client (4)
System\Data\Services\Client\AtomParser.cs (4)
104this.reader = reader; 319this.reader = newReader; 881this.reader = callbackResult.Key; 976this.reader = this.readers.Pop();
70 references to reader
System.Data.Services.Client (70)
System\Data\Services\Client\AtomParser.cs (70)
149get { return this.reader.NamespaceURI == this.currentDataNamespace; } 199while (this.reader.Read()) 201if (ShouldIgnoreNode(this.reader)) 207this.reader.NodeType == XmlNodeType.Element || this.reader.NodeType == XmlNodeType.EndElement, 210AtomDataKind readerData = ParseStateForReader(this.reader); 212if (this.reader.NodeType == XmlNodeType.EndElement) 231MaterializeAtom.SkipToEnd(this.reader); 306return MaterializeAtom.ReadElementString(this.reader, true); 532Debug.Assert(this.reader.NodeType == XmlNodeType.Element, "this.reader.NodeType == XmlNodeType.Element"); 534string propertyValue = this.reader.GetAttributeEx(XmlConstants.AtomContentSrcAttributeName, XmlConstants.AtomNamespace); 540if (!this.reader.IsEmptyElement) 560propertyValue = this.reader.GetAttributeEx(XmlConstants.AtomTypeAttributeName, XmlConstants.AtomNamespace); 563if (this.reader.IsEmptyElement) 568if (ReadChildElement(this.reader, XmlConstants.AtomPropertiesElementName, XmlConstants.DataWebMetadataNamespace)) 572else if (this.reader.NodeType != XmlNodeType.EndElement) 587this.reader.NodeType == XmlNodeType.Element, 590this.reader.LocalName == "link", 593string relation = this.reader.GetAttribute(XmlConstants.AtomLinkRelationAttributeName); 602string href = this.reader.GetAttribute(XmlConstants.AtomHRefAttributeName); 613string href = this.reader.GetAttribute(XmlConstants.AtomHRefAttributeName); 623string href = this.reader.GetAttribute(XmlConstants.AtomHRefAttributeName); 630targetEntry.StreamETagText = this.reader.GetAttribute(XmlConstants.AtomETagAttributeName, XmlConstants.DataWebMetadataNamespace); 633if (!this.reader.IsEmptyElement) 641string propertyValueText = this.reader.GetAttribute(XmlConstants.AtomTypeAttributeName); 649if (!ReadChildElement(this.reader, XmlConstants.AtomInlineElementName, XmlConstants.DataWebMetadataNamespace)) 654bool emptyInlineCollection = this.reader.IsEmptyElement; 663Debug.Assert(this.reader is Xml.XmlWrappingReader, "reader must be a instance of XmlWrappingReader"); 664string readerBaseUri = this.reader.BaseURI; 665XmlReader nestedReader = Xml.XmlWrappingReader.CreateReader(readerBaseUri, this.reader.ReadSubtree()); 745Debug.Assert(this.reader != null, "reader != null"); 748switch (this.reader.NodeType) 758property.Text = this.reader.Value; 797Debug.Assert(this.reader != null, "reader != null"); 799this.reader.NodeType == XmlNodeType.Element, 805SkipToEndAtDepth(this.reader, this.reader.Depth); 810result.Name = this.reader.LocalName; 811result.TypeName = this.reader.GetAttributeEx(XmlConstants.AtomTypeAttributeName, XmlConstants.DataWebMetadataNamespace); 812result.IsNull = Util.DoesNullAttributeSayTrue(this.reader); 815if (!this.reader.IsEmptyElement) 817int depth = this.reader.Depth; 818while (this.reader.Read()) 821if (this.reader.Depth == depth) 839Debug.Assert(this.reader.NodeType == XmlNodeType.Element, "this.reader.NodeType == XmlNodeType.Element"); 841while (this.reader.Read()) 843if (ShouldIgnoreNode(this.reader)) 848if (this.reader.NodeType == XmlNodeType.EndElement) 853if (this.reader.NodeType == XmlNodeType.Element) 875Debug.Assert(this.reader.NodeType == XmlNodeType.Element, "this.reader.NodeType == XmlNodeType.Element"); 878var callbackResult = this.entryCallback(this.reader); 880this.readers.Push(this.reader); 883this.reader.Read(); 884Debug.Assert(this.reader.LocalName == "entry", "this.reader.LocalName == 'entry' - otherwise we're not reading the subtree"); 890targetEntry.ETagText = this.reader.GetAttribute(XmlConstants.AtomETagAttributeName, XmlConstants.DataWebMetadataNamespace); 892while (this.reader.Read()) 894if (ShouldIgnoreNode(this.reader)) 899if (this.reader.NodeType == XmlNodeType.Element) 901int depth = this.reader.Depth; 902string elementName = this.reader.LocalName; 903string namespaceURI = this.reader.NamespaceURI; 908string text = this.reader.GetAttributeEx(XmlConstants.AtomCategorySchemeAttributeName, XmlConstants.AtomNamespace); 911targetEntry.TypeName = this.reader.GetAttributeEx(XmlConstants.AtomCategoryTermAttributeName, XmlConstants.AtomNamespace); 922string idText = ReadElementStringForText(this.reader); 954if (!this.reader.IsEmptyElement) 961SkipToEndAtDepth(this.reader, depth); 994if (!long.TryParse(MaterializeAtom.ReadElementString(this.reader, true), System.Globalization.NumberStyles.Integer, System.Globalization.CultureInfo.InvariantCulture, out countValue)) 1023string nextLink = this.reader.GetAttribute(XmlConstants.AtomHRefAttributeName); 1043if (!uri.IsAbsoluteUri && !String.IsNullOrEmpty(this.reader.BaseURI)) 1045Uri baseUri = Util.CreateUri(this.reader.BaseURI, UriKind.RelativeOrAbsolute);