using System; using System.Collections.Generic; namespace Muchinfo.MTPClient.Infrastructure.Cache { /// /// 缓存回应数据类 /// public class CacheResponseData { #region Fields /// /// 缓存时间 /// private readonly DateTime _cacheTime; //考虑不要使用嵌套泛型的设计 private readonly List> _dataCollection; #endregion Fields #region Constructors /// /// Initializes a new instance of the class. /// /// 缓存时间 public CacheResponseData(DateTime cacheTime) { this._dataCollection = new List>(); this._cacheTime = cacheTime; } #endregion Constructors #region Properties #region Public Properties /// /// 获取缓存时间 /// public DateTime CacheTime { get { return this._cacheTime; } } /// /// 获取缓存的字段值 /// public List> DataCollection { get { return this._dataCollection; } } #endregion Public Properties #endregion Properties } }