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: 2023.0.3.0 (2023.0.3.0)
C#
public bool Contains( TKey item )
Parameters
- item
- Type: TKey
The key to locate in the collection.
Return Value
Type: Booleantrue if the collection contains an element with the specified key; otherwise, false.