OrderedDictionaryTKey, TValueContainsKey Method |
Determines if this dictionary contains a key equal to key. The dictionary
is not changed.
Namespace: X3Platform.CollectionsAssembly: X3Platform.Support (in X3Platform.Support.dll) Version: 1.0.0.0 (2.0.0.0)
Syntaxpublic override sealed bool ContainsKey(
TKey key
)
public:
virtual bool ContainsKey(
TKey key
) override sealed
Parameters
- key
- Type: TKey
The key to search for.
Return Value
Type:
BooleanTrue if the dictionary contains key. False if the dictionary does not contain key.
Implements
IDictionaryTKey, TValueContainsKey(TKey)
RemarksSearching the dictionary for a key takes time O(log N), where N is the number of keys in the dictionary.
See Also