Esempio n. 1
0
 public object Clone()
 {
     return(new BlogPostImageData(
                (ImageFileData)ImageSourceFile.Clone(),
                ImageSourceShadowFile != null ? (ImageFileData)ImageSourceShadowFile.Clone() : null,
                (ImageFileData)InlineImageFile.Clone(),
                LinkedImageFile != null ? (ImageFileData)LinkedImageFile.Clone() : null,
                (BlogPostImageServiceUploadInfo)UploadInfo.Clone(),
                (BlogPostSettingsBag)ImageDecoratorSettings.Clone()));
 }
Esempio n. 2
0
        public object Clone()
        {
            BlogPostSettingsBag clone = new BlogPostSettingsBag();

            foreach (string key in Names)
            {
                string value = this[key];
                clone[key] = value;
            }

            foreach (string name in SubsettingNames)
            {
                BlogPostSettingsBag sub = GetSubSettings(name);
                clone.subsettings[name]         = (BlogPostSettingsBag)sub.Clone();
                clone.settingsOrderedKeyList    = (ArrayList)settingsOrderedKeyList.Clone();
                clone.subsettingsOrderedKeyList = (ArrayList)subsettingsOrderedKeyList.Clone();
            }
            return(clone);
        }
        public object Clone()
        {
            BlogPostExtensionData exdata =
                new BlogPostExtensionData(Guid.NewGuid().ToString(), (BlogPostSettingsBag)_settings.Clone(), _fileService, (Hashtable)_fileIds.Clone());

            exdata.RefreshCallBack = RefreshCallBack;
            exdata.ObjectState     = ObjectState;
            return(exdata);
        }