ImmutableSortedDictionary<TKey, TValue>.TryGetValue Method (TKey, TValue)

 

Gets the value associated with the specified key.

Namespace:   System.Collections.Immutable
Assembly:  System.Collections.Immutable (in System.Collections.Immutable.dll)

public bool TryGetValue(
	TKey key,
	out TValue value
)

Parameters

key
Type: TKey

The key whose value will be retrieved.

value
Type: TValue

When this method returns, contains the value associated with the specified key, if the key is found; otherwise, contains the default value for the type of the value parameter.

Return Value

Type: System.Boolean

true if the dictionary contains an element with the specified key; otherwise, false.

Return to top
Show: