PostSharp4.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).​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: 4.3.48.0 (4.3.48.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