IMapConst

Description

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

Derived from

IBagConst<MapEntry<TKey, TValue>>

Extended by

IMap
ISortedMapConst
MapConstBase abstract

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

Public / Methods

Contains​Key


public method ContainsKey → (1)

key in : TKey

The key.

returns → bool

true if the map contains an entry for the key, false if it does not.

Returns if this map contains an entry for the given key.

Get


public method Get → (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 entry value.

Returns the value that is currently mapped to the given key.

Public / Attributes

Keys


public attribute Keys → (get)

value : IBagConst<TKey>

[not-null]
The set of keys.

Returns a read-only set of all keys in this dictionary.

Values


public attribute Values → (get)

value : IBagConst<TValue>

[not-null]
The collection of values.

Returns a read-only collection of all values in this dictionary.