/// <inheritdoc />
        public bool Remove(TIndex key)
        {
            IDictionaryContracts.Remove(this, key);

            if (!this.ContainsKey(key))
            {
                return(false);
            }

            this.indexable[key] = TryValue.None <TValue>();
            this.count--;
            return(true);
        }
コード例 #2
0
        /// <inheritdoc />
        public bool Remove(TIndex key)
        {
            IDictionaryContracts.Remove(this, key);

            return(this.dictionary.Remove(key));
        }
コード例 #3
0
        /// <inheritdoc />
        public virtual bool Remove(TKey key)
        {
            IDictionaryContracts.Remove(this, key);

            return(this.Dictionary.Remove(key));
        }