Ejemplo n.º 1
0
            internal PartitionedListEnumerator(PartitionedList <T> list)
            {
                _list    = list;
                _buckets = _list._buckets;

                _currItem    = 0;
                _currBucket  = -1;
                _bucketCount = _buckets.Count;

                _version = _list._version;
                _current = default(T);
            }
Ejemplo n.º 2
0
 protected virtual void OnDispose()
 {
     _syncRoot.EnterWriteLock();
     try
     {
         _parent = null;
         Clear();
     }
     finally
     {
         _syncRoot.ExitWriteLock();
     }
 }
Ejemplo n.º 3
0
 public Bucket(PartitionedList <T> parent, int capacity = -1)
     : base(capacity < 0 ? 0 : capacity)
 {
     _parent = parent;
 }