Exemple #1
0
 /// <summary>
 /// 构造一个迭代器
 /// </summary>
 /// <param name="lruCache">近期最少使用缓存</param>
 internal Enumerator(LruCache <TKey, TVal> lruCache, bool forward)
 {
     this.lruCache = lruCache;
     this.forward  = forward;
 }
Exemple #2
0
 /// <summary>
 /// 构造一个迭代器
 /// </summary>
 /// <param name="lruCache">近期最少使用缓存</param>
 internal Enumerator(LruCache <TKey, TVal> lruCache)
 {
     this.lruCache = lruCache;
 }