コード例 #1
0
        public virtual BasePropertyChanged GetSimpleCopy()
        {
            BasePropertyChanged result = Activator.CreateInstance(this.GetType()) as BasePropertyChanged;

            result.saveOldValues     = this.saveOldValues;
            result.newPropertyValues = new Dictionary <string, object>(this.newPropertyValues);
            result.oldPropertyValues = new Dictionary <string, object>(this.oldPropertyValues);
            return(result);
        }
コード例 #2
0
 protected virtual void SetSimpleCopy(BasePropertyChanged source)
 {
     this.saveOldValues     = source.saveOldValues;
     this.newPropertyValues = new Dictionary <string, object>(source.newPropertyValues);
     this.oldPropertyValues = new Dictionary <string, object>(source.oldPropertyValues);
 }