internal SyndicationElementExtensionCollection(SyndicationElementExtensionCollection source) : base() { _buffer = source._buffer; for (int i = 0; i < source.Items.Count; ++i) { base.Add(source.Items[i]); } _initialized = true; }
internal void LoadElementExtensions(XmlReader readerOverUnparsedExtensions, int maxExtensionSize) { if (readerOverUnparsedExtensions == null) { throw new ArgumentNullException(nameof(readerOverUnparsedExtensions)); } if (maxExtensionSize < 0) { throw new ArgumentOutOfRangeException(nameof(maxExtensionSize)); } XmlDictionaryReader r = XmlDictionaryReader.CreateDictionaryReader(readerOverUnparsedExtensions); _elementExtensions = new SyndicationElementExtensionCollection(CreateXmlBuffer(r, maxExtensionSize)); }
private ExtensibleSyndicationObject(ExtensibleSyndicationObject source) { if (source._attributeExtensions != null) { _attributeExtensions = new Dictionary <XmlQualifiedName, string>(); foreach (XmlQualifiedName key in source._attributeExtensions.Keys) { _attributeExtensions.Add(key, source._attributeExtensions[key]); } } else { _attributeExtensions = null; } if (source._elementExtensions != null) { _elementExtensions = new SyndicationElementExtensionCollection(source._elementExtensions); } else { _elementExtensions = null; } }
internal void LoadElementExtensions(XmlBuffer buffer) { _elementExtensions = new SyndicationElementExtensionCollection(buffer); }