Exemplo n.º 1
0
        public static AttributeCollection GetAggregatedAttributes(this IAggregatesAttributes owner)
        {
            var aggregateAttributes = new AttributeCollection();

            if (owner.AttributeParent != null)
            {
                aggregateAttributes.AddOrUpdateAttributes(owner.AttributeParent.GetAggregatedAttributes());
            }

            aggregateAttributes.AddOrUpdateAttributes(owner.ExplicitAttributes);

            return(aggregateAttributes);
        }