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

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

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

Parameters

key
Type: TKey

Return Value

Type: TValue