StringKeyedDictionaryTValueContainsValue Method

Determines whether the StringKeyedDictionaryTValue contains a specific 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 StringKeyedDictionaryTValue. The value can be for reference types.

Return Value

Boolean
if the StringKeyedDictionaryTValue 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