Пример #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);
 }