private void SaveLinkedObjInfo(int hvoObj, CacheKey key, LinkedObjectType linkedObjectType, List<LinkedObjectInfo> result) { LinkedObjectInfo loi = GetLinkedObjectInfo(hvoObj, key.Hvo, key.Tag, linkedObjectType); if (loi != null) result.Add(loi); }
/// ------------------------------------------------------------------------------------ /// <summary> /// Gets or sets a property from the cache. /// </summary> /// <value></value> /// ------------------------------------------------------------------------------------ public override object this[CacheKey key] { get { CheckDisposed(); return base[key]; } set { CheckDisposed(); if (m_acth != null) { InMemoryUndoAction undoAct = new InMemoryUndoAction(this); undoAct.AddUndo(key, base[key]); undoAct.AddRedo(key, value); m_acth.AddAction(undoAct); } base[key] = value; } }