Ejemplo n.º 1
0
        /// <summary>
        /// Remove dead entries from the data for the given source.   Returns true if
        /// some entries were actually removed.
        /// </summary>
        protected override bool Purge(object source, object data, bool purgeAll)
        {
            TypeRecord typeRecord = (TypeRecord)data;
            bool       foundDirt  = typeRecord.Purge(purgeAll);

            if (!purgeAll && typeRecord.IsEmpty)
            {
                Remove(typeRecord.Type);
            }

            return(foundDirt);
        }