 | RankedMap<TKey, TValue>.ContainsKey Method |
Determines whether the map contains the supplied key.
Namespace:
Kaos.Collections
Assembly:
KaosCollections (in KaosCollections.dll) Version: 4.2.0.0
Syntaxpublic bool ContainsKey(
TKey key
)
Parameters
- key
- Type: TKey
The key to locate.
Return Value
Type:
Booleantrue if
key is contained in the map; otherwise
false.
Exceptions
Examples
The below snippet is part of a larger example of the
RankedMap<TKey, TValue> class.
if (fmt.ContainsKey ("jpeg"))
fmt.Add ("jpg", "JPEG bitmap image format");
See Also