Click or drag to resize

RankedMapTKey, TValueContainsKey Method

Determines whether the map contains the supplied key.

Namespace:  Kaos.Collections
Assembly:  KaosCollections (in KaosCollections.dll) Version: 4.2.0.0
Syntax
C#
public bool ContainsKey(
	TKey key
)

Parameters

key
Type: TKey
The key to locate.

Return Value

Type: Boolean
true if key is contained in the map; otherwise false.
Exceptions
ExceptionCondition
ArgumentNullExceptionWhen key is null.
Examples
The below snippet is part of a larger example of the RankedMapTKey, TValueclass.
C#
if (fmt.ContainsKey ("jpeg"))
    fmt.Add ("jpg", "JPEG bitmap image format");
See Also