Determines whether the CacheTKey, TValue contains a specific value.
Namespace: KGySoft.Collections
Assembly: KGySoft.CoreLibraries (in KGySoft.CoreLibraries.dll) Version: 5.0.0
Syntax
Parameters
- value
- Type: TValue
The value to locate in the CacheTKey, TValue. The value can be for reference types.
Return Value
Type: Booleanif 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