[]
        
(Showing Draft Content)

C1.LiveLinq.Indexing.SubindexCollection-1.Find

Find Method

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

Finds a subindex in the collection by its key selector.

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

Key selector expression of an subindex, see KeySelector.

Returns
Type Description
Subindex<T, TKey>

A subindex with the given key selector, if it is found; otherwise, null.

Type Parameters
Name Description
TKey

The type of the subindex key.

Find(LambdaExpression)

Finds a subindex in the collection by its key selector.

Declaration
public Subindex<T> Find(LambdaExpression keySelector)
Parameters
Type Name Description
LambdaExpression keySelector

Key selector expression of an subindex, see KeySelector.

Returns
Type Description
Subindex<T>

A subindex with the given key selector, if it is found; otherwise, null.