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 → (2)

key in : TKey

The key.

defaultValue opt : TValue = default(TValue)

The default value to return in case the map does not contain an entry for key in.

returns → TValue

The previously mapped value or defaultValue opt.

Removes the mapping for the given key.