IMap

Description

interface Tinman.Core.Collections.IMap
<TKey>
<TValue>

Derived from

IMapConst<TKey, TValue>

Extended by

IdentityMap sealed
ISortedMap
Map sealed

Base interface for classes that represent a set of key/value pairs.

Public / Methods

Clear


public method Clear → ()

Removes all key/value pairs from the map.

Put


public method Put → (2)

key in : TKey

The key.

value in : TValue

The value.

returns → TValue

The previously mapped value.

Maps the given value to the specified key.

Remove


public method Remove → (1)

key in : TKey

The key.

returns → TValue

The previously mapped value.

Removes the mapping for the given key.