public SyndicationExtensions Clone()
 {
     SyndicationExtensions ret = new SyndicationExtensions ();
     ret.attributes = attributes == null ? null : new Dictionary<XmlQualifiedName, string> (attributes);
     ret.elements = elements == null ? null : new SyndicationElementExtensionCollection (elements);
     return ret;
 }
 protected SyndicationContent(SyndicationContent source)
 {
     if (source == null)
     {
         throw new ArgumentNullException("source");
     }
     extensions = source.extensions.Clone();
 }
示例#3
0
        public SyndicationExtensions Clone()
        {
            SyndicationExtensions ret = new SyndicationExtensions();

            ret.attributes = attributes == null ? null : new Dictionary <XmlQualifiedName, string> (attributes);
            ret.elements   = elements == null ? null : new SyndicationElementExtensionCollection(elements);
            return(ret);
        }
 protected SyndicationCategory(SyndicationCategory source)
 {
     if (source == null)
         throw new ArgumentNullException ("source");
     name = source.name;
     scheme = source.scheme;
     label = source.label;
     extensions = source.extensions.Clone ();
 }
示例#5
0
		protected SyndicationPerson (SyndicationPerson source)
		{
			if (source == null)
				throw new ArgumentNullException ("source");
			email = source.email;
			name = source.name;
			uri = source.uri;
			extensions = source.extensions.Clone ();
		}
示例#6
0
 protected SyndicationPerson(SyndicationPerson source)
 {
     if (source == null)
     {
         throw new ArgumentNullException("source");
     }
     email      = source.email;
     name       = source.name;
     uri        = source.uri;
     extensions = source.extensions.Clone();
 }
示例#7
0
 protected SyndicationCategory(SyndicationCategory source)
 {
     if (source == null)
     {
         throw new ArgumentNullException("source");
     }
     name       = source.name;
     scheme     = source.scheme;
     label      = source.label;
     extensions = source.extensions.Clone();
 }
 protected SyndicationLink(SyndicationLink source)
 {
     if (source == null)
         throw new ArgumentNullException ("source");
     base_uri = source.base_uri;
     href = source.href;
     length = source.length;
     rel = source.rel;
     title = source.title;
     type = source.type;
     extensions = source.extensions.Clone ();
 }
示例#9
0
 protected SyndicationLink(SyndicationLink source)
 {
     if (source == null)
     {
         throw new ArgumentNullException("source");
     }
     base_uri   = source.base_uri;
     href       = source.href;
     length     = source.length;
     rel        = source.rel;
     title      = source.title;
     type       = source.type;
     extensions = source.extensions.Clone();
 }
示例#10
0
 protected SyndicationItem(SyndicationItem source)
 {
     extensions        = source.extensions.Clone();
     categories        = Copy <SyndicationCategory> (source.categories);
     authors           = Copy <SyndicationPerson> (source.authors);
     contributors      = Copy <SyndicationPerson> (source.contributors);
     links             = Copy <SyndicationLink> (source.links);
     base_uri          = source.base_uri;    // copy by reference !!
     copyright         = source.copyright == null ? null : source.copyright.Clone() as TextSyndicationContent;
     summary           = source.summary == null ? null : source.summary.Clone() as TextSyndicationContent;
     title             = source.title == null ? null : source.title.Clone() as TextSyndicationContent;
     content           = source.content == null ? null : source.content.Clone();
     id                = source.id;
     last_updated_time = source.last_updated_time;
     published_date    = source.published_date;
     source_feed       = source.source_feed == null ? null : source.source_feed.Clone(false);
 }
示例#11
0
        protected SyndicationFeed(SyndicationFeed source, bool cloneItems)
        {
            extensions        = source.extensions.Clone();
            categories        = source.categories == null ? null : new Collection <SyndicationCategory> (source.categories);
            authors           = source.authors == null ? null : new Collection <SyndicationPerson> (source.authors);
            contributors      = source.contributors == null ? null : new Collection <SyndicationPerson> (source.contributors);
            links             = source.links == null ? null : new Collection <SyndicationLink> (source.links);
            base_uri          = source.base_uri; // copy by reference !!
            copyright         = source.copyright == null ? null : source.copyright.Clone() as TextSyndicationContent;
            title             = source.title == null ? null : source.title.Clone() as TextSyndicationContent;
            id                = source.id;
            last_updated_time = source.last_updated_time;

            description = source.description == null ? null : source.description.Clone() as TextSyndicationContent;
            generator   = source.generator;
            image_url   = source.image_url; // copy by reference !!
            language    = source.language;

            if (cloneItems && source.items != null)
            {
                items = new Collection <SyndicationItem> (new List <SyndicationItem> (source.items));
            }
        }
 protected SyndicationContent(SyndicationContent source)
 {
     if (source == null)
         throw new ArgumentNullException ("source");
     extensions = source.extensions.Clone ();
 }