 | CondensedCollectionExtensionsContainsTSource Method |
[This is preliminary documentation and is subject to change.]
Determines whether a sequence contains a specified value by using a specified comparer.
Namespace:
Condensed.Linq
Assembly:
Condensed (in Condensed.dll) Version: 0.1.0.0 (0.1.0.0)
Syntaxpublic static bool Contains<TSource>(
this CondensedCollection<TSource> source,
TSource value,
IEqualityComparer<TSource> comparer
)
<ExtensionAttribute>
Public Shared Function Contains(Of TSource) (
source As CondensedCollection(Of TSource),
value As TSource,
comparer As IEqualityComparer(Of TSource)
) As Boolean
public:
[ExtensionAttribute]
generic<typename TSource>
static bool Contains(
CondensedCollection<TSource>^ source,
TSource value,
IEqualityComparer<TSource>^ comparer
)
[<ExtensionAttribute>]
static member Contains :
source : CondensedCollection<'TSource> *
value : 'TSource *
comparer : IEqualityComparer<'TSource> -> bool
Parameters
- source
- Type: CondensedCondensedCollectionTSource
A CondensedCollection in which to locate a value. - value
- Type: TSource
The value to locate in the CondensedCollection. - comparer
- Type: System.Collections.GenericIEqualityComparerTSource
An equality comparer to compare values.
Type Parameters
- TSource
- The type of the elements of source.
Return Value
Type:
Booleantrue if the collection contains an element that has the specified value; otherwise, false.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
CondensedCollectionTSource. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
See Also