TBidiDictionary<TKey,TValue>.GetValueOrDefault(TKey,TValue) Method

Gets the value for a given key if a matching key exists in the dictionary; returns the given default value otherwise.

Namespace: Spring.Collections.Dictionaries
public
 function GetValueOrDefault(const key: TKey; const defaultValue: TValue): TValue; overload;

Parameters

key
Type: TKey

defaultValue
Type: TValue

Return Value

Type: TValue

 

Implements

IReadOnlyDictionary<TKey,TValue>.GetValueOrDefault(TKey,TValue)
IDictionary<TKey,TValue>.GetValueOrDefault(TKey,TValue)