[]
        
(Showing Draft Content)

C1.LiveLinq.Indexing.SubindexCollection-1.Contains

Contains Method

Contains(LambdaExpression)

Determines whether a subindex 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 a subindex, see KeySelector.

Returns
Type Description
bool

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

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

Determines whether a subindex 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 a subindex, see KeySelector.

Returns
Type Description
bool

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

Type Parameters
Name Description
TKey

The type of the subindex key.