PostSharp 6.5 / / Post­Sharp Documentation / API Reference / Post­Sharp.​Patterns.​Collections Namespace / Advisable­Keyed­Collection(TKey, TItem) Class / Advisable­Keyed­Collection(TKey, TItem) Methods / Advisable­Keyed­Collection(TKey, TItem).​Contains Method / Advisable­Keyed­Collection(TKey, TItem).​Contains Method (TKey)

AdvisableKeyedCollection<TKey, TItem>.Contains Method (TKey)

Determines whether the collection contains an element with the specified key.

Namespace:  PostSharp.Patterns.Collections
Assembly:  PostSharp.Patterns.Common (in PostSharp.Patterns.Common.dll) Version: 6.5.19.0 (6.5.19.0)
Syntax
C#
public bool Contains(
	TKey item
)

Parameters

item
Type: TKey
The key to locate in the collection.

Return Value

Type: Boolean
true if the collection contains an element with the specified key; otherwise, false.
See Also