Click or drag to resize

PersistentDictionaryTKey, TValueRemove Method

Removes an item with the specified key from the dictionary. This method does not modify the instance on which it is called but instead returns a new instance with the element removed. If the key does not exist in the dictionary, this method returns the instance on which it is called.

Namespace:  AGI.Foundation.Infrastructure.Threading
Assembly:  AGI.Foundation.Core (in AGI.Foundation.Core.dll) Version: 21.2.409.0 (21.2.409.0)
Syntax
public abstract PersistentDictionary<TKey, TValue> Remove(
	TKey key
)

Parameters

key
Type: TKey
The key to remove from the dictionary.

Return Value

Type: PersistentDictionaryTKey, TValue
A new instance without the specified key, or the same instance on which it is called if the key does not exist in the dictionary.
See Also