예제 #1
0
 protected XmlSyndicationContent(XmlSyndicationContent source)
     : base(source)
 {
     if (source == null)
     {
         throw new ArgumentNullException(nameof(source));
     }
     _contentBuffer = source._contentBuffer;
     _extension     = source._extension;
     _type          = source._type;
 }
예제 #2
0
 public XmlSyndicationContent(string type, object xmlSerializerExtension, XmlSerializer serializer)
 {
     _type      = string.IsNullOrEmpty(type) ? Atom10Constants.XmlMediaType : type;
     _extension = new SyndicationElementExtension(xmlSerializerExtension, serializer);
 }
예제 #3
0
 public XmlSyndicationContent(string type, object dataContractExtension, XmlObjectSerializer dataContractSerializer)
 {
     _type      = string.IsNullOrEmpty(type) ? Atom10Constants.XmlMediaType : type;
     _extension = new SyndicationElementExtension(dataContractExtension, dataContractSerializer);
 }