Tests whether this list contains a given value as an element.
Namespace: FlinqAssembly: Flinq (in Flinq.dll) Version: 1.0.2.0 (1.0.2.0)
Syntax
C# |
---|
public static bool Contains<A>( this IEnumerable<A> source, A elem ) |
Parameters
- source
- Type: System.Collections.Generic..::..IEnumerable<(Of <(<'A>)>)>
The input sequence.
- elem
- Type: A
The element to test.
Type Parameters
- A
- The type of the elements in the input sequence.
Return Value
Type: Booleantrue if this list has an element that is equal (as determined by EqualityComparer<A>.Default) to elem, false otherwise.