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