public bool Remove(TKey key)
        {
            bool removed = _array.Remove(key);

            if (removed)
            {
                _count--;
            }
            return(removed);
        }
Exemple #2
0
        /// <summary>
        /// Removes an item with a specified key
        /// </summary>
        /// <param name="key">The specified key</param>
        /// <returns>True if the item is removed, otherwise false</returns>
        public bool Remove(TKey key)
        {
            bool isRemvoed = _array.Remove(key);

            if (isRemvoed)
            {
                _count--;
            }

            return(isRemvoed);
        }