public override void ReadFrom(XmlReader reader)
 {
     if (!CanRead(reader))
     {
         throw new InvalidOperationException("Trying to deserialize an item from unknown type");
     }
     this.item = (JsonSyndicationItem)this.serializer.ReadObject(reader);
     base.SetItem(this.item.ToSyndicationItem());
 }
 public override void ReadFrom(XmlReader reader)
 {
     if (!CanRead(reader))
     {
         throw new InvalidOperationException("Trying to deserialize an item from unknown type");
     }
     this.item = (JsonSyndicationItem) this.serializer.ReadObject(reader);
     base.SetItem(this.item.ToSyndicationItem());
 }
 protected override void SetItem(SyndicationItem item)
 {
     base.SetItem(item);
     this.item = new JsonSyndicationItem(item);
 }
 public JsonItemFormatter(SyndicationItem itemToWrite)
     : base(itemToWrite)
 {
     this.serializer = new DataContractSerializer(typeof(JsonSyndicationItem));
     this.item = new JsonSyndicationItem(itemToWrite);
 }
 public JsonItemFormatter()
     : base()
 {
     this.serializer = new DataContractSerializer(typeof(JsonSyndicationItem));
     this.item = null;
 }
 protected override void SetItem(SyndicationItem item)
 {
     base.SetItem(item);
     this.item = new JsonSyndicationItem(item);
 }
 public JsonItemFormatter(SyndicationItem itemToWrite)
     : base(itemToWrite)
 {
     this.serializer = new DataContractSerializer(typeof(JsonSyndicationItem));
     this.item       = new JsonSyndicationItem(itemToWrite);
 }
 public JsonItemFormatter()
     : base()
 {
     this.serializer = new DataContractSerializer(typeof(JsonSyndicationItem));
     this.item       = null;
 }