CacheTKey, TValueContainsValue Method

Determines whether the CacheTKey, TValue contains a specific value.

Definition

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

Parameters

value  TValue
The value to locate in the CacheTKey, TValue. The value can be for reference types.

Return Value

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

Remarks

This method determines equality using the EnumComparer<TEnum>.Comparer when TValue is an enum type, or the default equality comparer EqualityComparer<T>.Default for other TValue types.

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

See Also