ThreadSafeDictionaryTKey, TValueContainsValue Method

Determines whether the ThreadSafeDictionaryTKey, TValue contains an element with the specified value.

Definition

Namespace: KGySoft.Collections
Assembly: KGySoft.CoreLibraries (in KGySoft.CoreLibraries.dll) Version: 10.0.0
C#
public bool ContainsValue(
	TValue value
)

Parameters

value  TValue
The value to locate in the ThreadSafeDictionaryTKey, TValue.

Return Value

Boolean
if the ThreadSafeDictionaryTKey, TValue contains an element with the specified value; otherwise, .

Remarks

This method determines equality using the EnumComparer<TEnum>.Comparer when targeting the .NET Framework and TValue is an enum type, or the default equality comparer EqualityComparer<T>.Default in other cases.

This method performs a linear search; therefore, this method is an O(n) operation.

See Also