PostSharpAPI ReferencePost­Sharp.​Patterns.​CollectionsAdvisable­Keyed­Collection<TKey, TItem>Try­Get­Value
Open sandboxFocus

AdvisableKeyedCollection<TKey, TItem>.TryGetValue Method

TryGetValue(TKey, out TItem)

Tries to get the element with the specified key.

Declaration
public bool TryGetValue(TKey key, out TItem item)
Parameters
Type Name Description
TKey key

The key of the element.

TItem item

The element whose key is key or default if such element is not present.

Returns
Type Description
Boolean

true when the element whose key is key is present, otherwise false.