Click or drag to resize

IReadOnlyDictionaryTKey, TValueTryGetValue Method

Gets the value that is associated with the specified key.

Namespace:  EBP.Api.Misc
Assembly:  EBP.Api (in EBP.Api.dll) Version: 1.0.2835.45 (1.0.2835.45)
Syntax
bool TryGetValue(
	TKey key,
	out TValue value
)

Parameters

key
Type: TKey
The key to locate.
value
Type: TValue
When this method returns, the value associated with the specified key, if the key is found; otherwise, the default value for the type of the value parameter. This parameter is passed uninitialized.

Return Value

Type: Boolean
true if the object that implements the IReadOnlyDictionaryTKey, TValue interface contains an element that has the specified key; otherwise, false.
See Also