Contains Method
Definition
- Namespace
- Cuemon.Collections.Generic
- Assemblies
- Cuemon.Core.dll
Contains(T)
Determines whether the ConditionalCollection<T> contains a specific value.
public abstract bool Contains(T item)
Parameters
itemTThe object to locate in the ConditionalCollection<T>.
Returns
- bool
trueifitemis found in the ConditionalCollection<T>; otherwise,false.
Contains(T, IEqualityComparer<T>)
Determines whether the ConditionalCollection<T> contains a specific value by using a specified comparer.
protected bool Contains(T item, IEqualityComparer<T> comparer)
Parameters
itemTThe object to locate in the ConditionalCollection<T>.
comparerIEqualityComparer<T>The IEqualityComparer<T> implementation to use when comparing the specified
itemwith an element from the ConditionalCollection<T>.
Returns
- bool
trueifitemis found in the ConditionalCollection<T>; otherwise,false.