Determines whether the dictionary contains an element with a specific value.
- value
- The value to locate in the dictionary.
true, if an element whose value is value is found in the dictionary; otherwise, false.
This method determines equality using the default equality comparer for the value type TValue. If TValue implements IEquatable<TValue>, that type is used. Otherwise, object.Equals is used.
This method performs a linear search; therefore, the average execution time is proportional to Dictionary<TKey, TValue>.Count. That is, this method is an O(n) operation, where n is Dictionary<TKey, TValue>.Count.
Namespace: System.Collections.Generic
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 2.0.0.0
Since: .NET 2.0