/// <inheritdoc /> internal override void SetAggregateFunctionToAggregateDescription(IAggregateDescription aggregateDescription, object aggregateFunction) { PropertyAggregateDescriptionBase padb = aggregateDescription as PropertyAggregateDescriptionBase; AggregateFunction af = aggregateFunction as AggregateFunction; if (padb != null && af != null) { padb.AggregateFunction = af; } }
/// <inheritdoc /> protected override sealed void CloneCore(Cloneable source) { this.CloneOverride(source); PropertyAggregateDescriptionBase original = source as PropertyAggregateDescriptionBase; if (original != null) { this.AggregateFunction = Cloneable.CloneOrDefault(original.AggregateFunction); this.StringFormatSelector = Cloneable.CloneOrDefault(original.StringFormatSelector); this.StringFormat = original.StringFormat; } base.CloneCore(source); }