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

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

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

Parameters

value
Type: TValue

defaultValue
Type: TKey

Return Value

Type: TKey

 

Implements

IBidiDictionary<TKey,TValue>.GetKeyOrDefault(TValue,TKey)