private bool ReadNextAndCheckForInStreamError() { bool flag = this.ReadInternal(true); if ((!this.disableInStreamErrorDetection && (this.NodeType == XmlNodeType.Element)) && (this.LocalNameEquals(this.ODataErrorElementName) && this.NamespaceEquals(this.ODataMetadataNamespace))) { throw new ODataErrorException(ODataAtomErrorDeserializer.ReadErrorElement(this, this.maxInnerErrorDepth)); } return(flag); }
/// <summary> /// Read a top-level error. /// </summary> /// <returns>An <see cref="ODataError"/> representing the read error.</returns> private ODataError ReadErrorImplementation() { ODataAtomErrorDeserializer atomErrorDeserializer = new ODataAtomErrorDeserializer(this); return atomErrorDeserializer.ReadTopLevelError(); }
/// <summary> /// Read a top-level error. /// </summary> /// <returns>An <see cref="ODataError"/> representing the read error.</returns> private ODataError ReadErrorImplementation() { ODataAtomErrorDeserializer atomErrorDeserializer = new ODataAtomErrorDeserializer(this); return(atomErrorDeserializer.ReadTopLevelError()); }