Table of Contents

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

K
V
Inherited Members
Extension Methods

Methods

Add(K, V)

Adds a new key-value pair to the dictionary.

void Add(K key, V value)

Parameters

key K

The key to add.

value V

The 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

kv KeyValuePair<K, V>

The key-value pair to locate.

Returns

bool

true if the pair is present; otherwise, false.

Remove(K)

Removes the entry that matches the specified key.

bool Remove(K key)

Parameters

key K

The key of the entry to remove.

Returns

bool

true if the key was removed; otherwise, false.

Set(K, V)

Sets the value associated with the specified key.

void Set(K key, V value)

Parameters

key K

The key to update.

value V

The value to assign.