Interface IDictionaryMap<K, V>
- Namespace
- Utils.Collections
- Assembly
- Utils.dll
Interface representing a modifiable map that supports dictionary operations.
public interface IDictionaryMap<K, V> : IReadOnlyDictionaryMap<K, V>
Type Parameters
KV
- Inherited Members
- Extension Methods
Methods
Add(K, V)
Adds a new key-value pair to the dictionary.
void Add(K key, V value)
Parameters
keyKThe key to add.
valueVThe value associated with the key.
Clear()
Removes all entries from the dictionary.
void Clear()
Contains(KeyValuePair<K, V>)
Determines whether the dictionary contains the specified key-value pair.
bool Contains(KeyValuePair<K, V> kv)
Parameters
kvKeyValuePair<K, V>The key-value pair to locate.
Returns
Remove(K)
Removes the entry that matches the specified key.
bool Remove(K key)
Parameters
keyKThe key of the entry to remove.
Returns
Set(K, V)
Sets the value associated with the specified key.
void Set(K key, V value)
Parameters
keyKThe key to update.
valueVThe value to assign.