/// <summary> /// Removes the first occurrence of a specific object from the <see cref="FileBackedHashSet{T}"/>. /// </summary> /// <param name="item">The object to remove from the <see cref="FileBackedHashSet{T}"/>.</param> /// <returns> /// true if <paramref name="item"/> was successfully removed from the <see cref="FileBackedHashSet{T}"/>; otherwise, false. This method also returns false if <paramref name="item"/> is not found in the original <see cref="FileBackedHashSet{T}"/>. /// </returns> /// <exception cref="NotSupportedException">The <see cref="FileBackedHashSet{T}"/> is read-only.</exception> public bool Remove(T item) { return(m_lookupTable.Remove(item)); }
/// <summary> /// Removes the element with the specified key from the <see cref="FileBackedDictionary{TKey, TValue}"/>. /// </summary> /// <returns> /// true if the element is successfully removed; otherwise, false. /// This method also returns false if <paramref name="key"/> was not /// found in the original <see cref="FileBackedDictionary{TKey, TValue}"/>. /// </returns> /// <param name="key">The key of the element to remove.</param> /// <exception cref="ArgumentNullException"><paramref name="key"/> is null.</exception> /// <exception cref="NotSupportedException">The <see cref="FileBackedDictionary{TKey, TValue}"/> is read-only.</exception> public bool Remove(TKey key) { return(m_lookupTable.Remove(key)); }