コード例 #1
0
		public void Dispose(Guid collectionID)
		{
			var enumerator = CollectionsCache.GetCollection(collectionID) as IDisposable;
			if (enumerator != null)
				enumerator.Dispose();

			CollectionsCache.DeleteCollection(collectionID);
		}
コード例 #2
0
		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;
		}