PostSharp6.3/API Reference/Post­Sharp.​Patterns.​Collections Namespace/Advisable­Keyed­Collection(TKey, TItem) Class/Advisable­Keyed­Collection(TKey, TItem) Methods/Advisable­Keyed­Collection(TKey, TItem).​Try­Get­Value Method

AdvisableKeyedCollection<TKey, TItem>.TryGetValue Method

Tries to get the element with the specified key.

Namespace:  PostSharp.Patterns.Collections
Assembly:  PostSharp.Patterns.Common (in PostSharp.Patterns.Common.dll) Version: 6.3.11.0 (6.3.11.0)
Syntax
C#
public bool TryGetValue(
	TKey key,
	out TItem item
)

Parameters

key
Type: TKey
The key of the element.
item
Type: TItem
The element whose key is key or default if such element is not present.

Return Value

Type: Boolean
true when the element whose key is key is present, otherwise false.
See Also