using Muchinfo.MTPClient.Infrastructure.Enums; using System; using System.Collections.Generic; namespace Muchinfo.MTPClient.Infrastructure.Cache { public class CacheObject : IDisposable { public DateTime CacheTime { get; set; } public CacheType CacheType { get; set; } public List CacheList { get; set; } public CacheObject(CacheType type) { this.CacheType = type; } public void Dispose() { this.CacheTime = DateTime.MinValue; if (this.CacheList != null) { this.CacheList.Clear(); this.CacheList = null; } } } }