[]
        
(Showing Draft Content)

C1.LiveLinq.Indexing.IndexCollection-1.Find

Find Method

Find(LambdaExpression)

Finds an index in the collection by its key selector.

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

Key selector expression of an index, see KeySelector.

Returns
Type Description
Index<T>

An index with the given key selector, if it is found; otherwise, null.

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

Finds an index in the collection by its key selector.

Declaration
public Index<T, TKey> Find<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
Index<T, TKey>

An index with the given key selector, if it is found; otherwise, null.

Type Parameters
Name Description
TKey

The type of the index key.