Ejemplo n.º 1
0
        /// <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;
            }
        }
Ejemplo n.º 2
0
        /// <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);
        }