Exemplo n.º 1
0
 /// <summary>
 /// Removes all the elements.
 /// </summary>
 public void Clear()
 {
     foreach (var item in _wrapped.ClearEnumerable())
     {
         _reservoir.DonateNeedle(item.Key);
     }
 }
Exemplo n.º 2
0
        /// <summary>
        /// Removes all the elements.
        /// </summary>
        public void Clear()
        {
            var displaced = _wrapped.ClearEnumerable();

            foreach (var item in displaced)
            {
                NeedleReservoir <TKey, TNeedle> .DonateNeedle(item.Key);
            }
        }
Exemplo n.º 3
0
        public void Clear()
        {
            var displaced = _wrapped.ClearEnumerable();

            foreach (var item in displaced)
            {
                item.Value.Dispose();
            }
        }