Method Contains
Contains(T, IEqualityComparer<T>?)
Determines whether the collection contains the given item using the specified equality comparer.
Declaration
public bool Contains(T item, IEqualityComparer<T>? comparer = null)
Parameters
Type | Name | Description |
---|---|---|
T | item | |
IEqualityComparer<T> | comparer |
Returns
Type | Description |
---|---|
bool |