public virtual object Clone() { var result = MemberwiseClone() as PricelistAssignment; result.Pricelist = Pricelist?.Clone() as Pricelist; result.DynamicExpression = DynamicExpression?.Clone() as PriceConditionTree; return(result); }
public virtual object Clone() { var result = MemberwiseClone() as DynamicContentPublication; if (DynamicExpression != null) { result.DynamicExpression = DynamicExpression.Clone() as DynamicContentConditionTree; } if (ContentItems != null) { result.ContentItems = new ObservableCollection <DynamicContentItem>( ContentItems.Select(x => x.Clone() as DynamicContentItem)); } if (ContentPlaces != null) { result.ContentPlaces = new ObservableCollection <DynamicContentPlace>( ContentPlaces.Select(x => x.Clone() as DynamicContentPlace)); } return(result); }