Table of Contents

Contains Method

Definition

Contains(T)

Determines whether the ConditionalCollection<T> contains a specific value.

public abstract bool Contains(T item)

Parameters

item T

The object to locate in the ConditionalCollection<T>.

Returns

bool

true if item is 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

item T

The object to locate in the ConditionalCollection<T>.

comparer IEqualityComparer<T>

The IEqualityComparer<T> implementation to use when comparing the specified item with an element from the ConditionalCollection<T>.

Returns

bool

true if item is found in the ConditionalCollection<T>; otherwise, false.