IReadOnlyDictionary<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
public
 function GetValueOrDefault(const key: TKey; const defaultValue: TValue): TValue; overload;

Parameters

key
Type: TKey

defaultValue
Type: TValue

Return Value

Type: TValue