PostSharp4.3//API Reference/Post­Sharp.​Patterns.​Collections Namespace/Advisable­Dictionary(TKey, TValue) Class/Advisable­Dictionary(TKey, TValue) Methods/Advisable­Dictionary(TKey, TValue).​Contains­Key Method
AdvisableDictionary<TKey, TValue>.ContainsKey Method
Determines whether the IDictionary<TKey, TValue> 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 ContainsKey(
	TKey key
)

Parameters

key
Type: TKey
The key to locate in the IDictionary<TKey, TValue>.

Return Value

Type: Boolean
true if the IDictionary<TKey, TValue> contains an element with the key; otherwise, false.

Implements

IDictionary<TKey, TValue>.ContainsKey(TKey)
Exceptions
ExceptionCondition
ArgumentNullExceptionkey is null.
See Also