Example #1
0
 public override void ReadFrom(XmlReader reader)
 {
     SyndicationFeedFormatter.TraceItemReadBegin();
     if (!CanRead(reader))
     {
         throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(SR.GetString(SR.UnknownItemXml, reader.LocalName, reader.NamespaceURI)));
     }
     ReadItem(reader);
     SyndicationFeedFormatter.TraceItemReadEnd();
 }
Example #2
0
 void IXmlSerializable.ReadXml(XmlReader reader)
 {
     if (reader == null)
     {
         throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("reader");
     }
     SyndicationFeedFormatter.TraceItemReadBegin();
     ReadItem(reader);
     SyndicationFeedFormatter.TraceItemReadEnd();
 }
Example #3
0
 public override void ReadFrom(XmlReader reader)
 {
     SyndicationFeedFormatter.TraceItemReadBegin();
     if (!this.CanRead(reader))
     {
         throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(System.ServiceModel.SR.GetString("UnknownItemXml", new object[] { reader.LocalName, reader.NamespaceURI })));
     }
     this.ReadItem(reader);
     SyndicationFeedFormatter.TraceItemReadEnd();
 }
Example #4
0
        public override void ReadFrom(XmlReader reader)
        {
            SyndicationFeedFormatter.TraceItemReadBegin();
            if (!CanRead(reader))
            {
                throw new XmlException(SR.Format(SR.UnknownItemXml, reader.LocalName, reader.NamespaceURI));
            }

            ReadItem(reader);
            SyndicationFeedFormatter.TraceItemReadEnd();
        }
Example #5
0
        void IXmlSerializable.ReadXml(XmlReader reader)
        {
            if (reader == null)
            {
                throw new ArgumentNullException(nameof(reader));
            }
            SyndicationFeedFormatter.TraceItemReadBegin();

            ReadItem(reader);
            SyndicationFeedFormatter.TraceItemReadEnd();
        }