public Level1CacheClass(IEqualityComparer <TKey> keyComparer) : base(keyComparer) { #if !SILVERLIGHT _GC2Count = GC.CollectionCount(2); #else _GC2Count = (int)(System.DateTime.Now.Ticks / 100000000L); //10 second intervals #endif MaintenanceWorker.Register(this); }
public InternalWeakDictionary(KeyComparer <TStrongKey> keyComparer) : base(keyComparer) { _comparer = keyComparer; MaintenanceWorker.Register(this); }
public InternalWeakDictionary(int concurrencyLevel, int capacity, KeyComparer <TStrongKey> keyComparer) : base(concurrencyLevel, capacity, keyComparer) { _comparer = keyComparer; MaintenanceWorker.Register(this); }