Пример #1
0
        internal GreenModelGroup PurgeWeakObjects(HashSet <ObjectId> strongObjects)
        {
            GreenModelGroup result = this;

            foreach (var model in this.models.Values)
            {
                result = result.UpdateModel(model.PurgeWeakObjects(strongObjects));
            }
            return(result);
        }
Пример #2
0
        internal GreenModelGroup ReplaceObject(ObjectId oid, ObjectId targetOid)
        {
            GreenModelGroup result = this;

            foreach (var model in this.models.Values)
            {
                result = result.UpdateModel(model.ReplaceObject(oid, targetOid));
            }
            return(result);
        }