[]
        
(Showing Draft Content)

C1.LiveLinq.Indexing.ScannerCollection-1.Contains

Contains Method

Contains(LambdaExpression)

Determines whether an index with the specified key selector exists in the collection.

Declaration
public bool Contains(LambdaExpression keySelector)
Parameters
Type Name Description
LambdaExpression keySelector

Key selector expression of an index, see KeySelector.

Returns
Type Description
bool

true if an index with the specified key selector is found in the collection; otherwise, false.

Contains<TKey>(Expression<Func<T, TKey>>)

Determines whether an index with the specified key selector exists in the collection.

Declaration
public bool Contains<TKey>(Expression<Func<T, TKey>> keySelector)
Parameters
Type Name Description
Expression<Func<T, TKey>> keySelector

Key selector expression of an index, see KeySelector.

Returns
Type Description
bool

true if an index with the specified key selector is found in the collection; otherwise, false.

Type Parameters
Name Description
TKey

The type of the index key.