Class Dictionary

Index

Constructor methods

Methods

Constructor methods

constructor(capacity?: number, comparer?: EqualityComparer): Dictionary

Parameters

Returns

Dictionary

Methods

public add(key: TKey in Ix.Dictionary<TKey, TValue>, value: TValue in Ix.Dictionary<TKey, TValue>)

Parameters

  • key: TKey in Ix.Dictionary<TKey, TValue>
  • value: TValue in Ix.Dictionary<TKey, TValue>

public clear()

public get(key: TKey in Ix.Dictionary<TKey, TValue>): TValue in Ix.Dictionary<TKey, TValue>

Parameters

  • key: TKey in Ix.Dictionary<TKey, TValue>

Returns

TValue in Ix.Dictionary<TKey, TValue>

public getValues(): Array<TValue>

Returns

Array<TValue>

public has(key: TKey in Ix.Dictionary<TKey, TValue>): boolean

Parameters

  • key: TKey in Ix.Dictionary<TKey, TValue>

Returns

boolean

public length(): number

Returns

number

public remove(key: TKey in Ix.Dictionary<TKey, TValue>): boolean

Parameters

  • key: TKey in Ix.Dictionary<TKey, TValue>

Returns

boolean

public set(key: TKey in Ix.Dictionary<TKey, TValue>, value: TValue in Ix.Dictionary<TKey, TValue>)

Parameters

  • key: TKey in Ix.Dictionary<TKey, TValue>
  • value: TValue in Ix.Dictionary<TKey, TValue>

public toEnumerable(): Enumerable

Returns

Enumerable

public tryGetValue(key: TKey in Ix.Dictionary<TKey, TValue>): TValue in Ix.Dictionary<TKey, TValue>

Parameters

  • key: TKey in Ix.Dictionary<TKey, TValue>

Returns

TValue in Ix.Dictionary<TKey, TValue>