public void Dispose(Guid collectionID) { var enumerator = CollectionsCache.GetCollection(collectionID) as IDisposable; if (enumerator != null) enumerator.Dispose(); CollectionsCache.DeleteCollection(collectionID); }
public List<Object> LoadWhole(Guid collectionID) { var list = new List<Object>(); var enumerator = CollectionsCache.GetCollection(collectionID); while (enumerator.MoveNext()) list.Add(enumerator.Current); CollectionsCache.DeleteCollection(collectionID); return list; }