Determines whether the dictionary contains an element with a specific key.
- key
- The key to locate in the dictionary.
true, if an element whose key is key is found in the dictionary; otherwise, false.
Type Reason ArgumentNullException key is null.
This implementation is close to O(1) in most cases.
Namespace: System.Collections.Generic
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 2.0.0.0
Since: .NET 2.0