示例#1
0
 public override void ReadFrom(XmlReader reader)
 {
     if (!CanRead(reader))
     {
         throw new InvalidOperationException("Trying to deserialize an feed from unknown type");
     }
     this.feed = (JsonSyndicationFeed) this.serializer.ReadObject(reader);
     base.SetFeed(this.feed.ToSyndicationFeed());
 }
示例#2
0
 public override void ReadFrom(XmlReader reader)
 {
     if (!CanRead(reader))
     {
         throw new InvalidOperationException("Trying to deserialize an feed from unknown type");
     }
     this.feed = (JsonSyndicationFeed)this.serializer.ReadObject(reader);
     base.SetFeed(this.feed.ToSyndicationFeed());
 }
示例#3
0
 protected override void SetFeed(SyndicationFeed feed)
 {
     base.SetFeed(feed);
     this.feed = new JsonSyndicationFeed(feed);
 }
示例#4
0
 public JsonFeedFormatter(SyndicationFeed feedToWrite)
     : base(feedToWrite)
 {
     this.serializer = new DataContractSerializer(typeof(JsonSyndicationFeed));
     this.feed       = new JsonSyndicationFeed(feedToWrite);
 }
示例#5
0
 public JsonFeedFormatter()
     : base()
 {
     this.serializer = new DataContractSerializer(typeof(JsonSyndicationFeed));
     this.feed       = null;
 }
示例#6
0
 protected override void SetFeed(SyndicationFeed feed)
 {
     base.SetFeed(feed);
     this.feed = new JsonSyndicationFeed(feed);
 }
示例#7
0
 public JsonFeedFormatter(SyndicationFeed feedToWrite)
     : base(feedToWrite)
 {
     this.serializer = new DataContractSerializer(typeof(JsonSyndicationFeed));
     this.feed = new JsonSyndicationFeed(feedToWrite);
 }
示例#8
0
 public JsonFeedFormatter()
     : base()
 {
     this.serializer = new DataContractSerializer(typeof(JsonSyndicationFeed));
     this.feed = null;
 }