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); }
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); }