KGy SOFT

CacheTKey, TValueContainsValue Method

KGy SOFT Core Libraries Help

Namespace:  KGySoft.Collections
Assembly:  KGySoft.CoreLibraries (in KGySoft.CoreLibraries.dll) Version: 5.0.0
Syntax

public bool ContainsValue(
	TValue value
)

Parameters

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

Return Value

Type: 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

Reference