Map

Description

sealed class Tinman.Core.Collections.Map
<TKey>
<TValue>

Derived from

MapBase<TKey, TValue> abstract

An implementation of the IMap interface that uses a hashtable for storing the key/value pairs.

Public / Constructors

Map

3 overloads


public constructor Map1 → (1)

capacity opt : int32 = 12

[>=0]
The initial capacity of the dictionary, in key/value pairs.

Creates a new instance of Map.

The equality delegate is SystemUtil.EqualsDefault.
The hash code delegate is SystemUtil.HashCodeDefault.


public constructor Map2 → (2)

equals in : EqualsDelegate<TKey>

Optional equality comparer. If null, SystemUtil.EqualsDefault will be used.

capacity opt : int32 = 12

[>=0]
The initial capacity of the dictionary, in key/value pairs.

Creates a new instance of Map.

The hash code delegate is SystemUtil.HashCodeDefault.


public constructor Map3 → (3)

equals in : EqualsDelegate<TKey>

Optional equality comparer. If null, SystemUtil.EqualsDefault will be used.

hashCode in : HashCodeDelegate<TKey>

Optional hash code delegate. If null, SystemUtil.HashCodeDefault will be used.

capacity opt : int32 = 12

[>=0]
The initial capacity of the dictionary, in key/value pairs.

Creates a new instance of Map.

Public / Methods

Clear​Dirty


public method ClearDirty → ()

Removes all entries from this map, without setting the element keys and values to their defaults.