Finds an index in the collection by its key selector.

Namespace:  C1.LiveLinq.Indexing
Assembly:  C1.LiveLinq (in C1.LiveLinq.dll)

Syntax

C#
public IIndexScanner<T, TKey> Find<TKey>(
	Expression<Func<T, TKey>> keySelector
)
Visual Basic
Public Function Find(Of TKey) ( _
	keySelector As Expression(Of Func(Of T, TKey)) _
) As IIndexScanner(Of T, TKey)

Parameters

keySelector
Type: System.Linq.Expressions..::..Expression<(Of <(<'Func<(Of <(<'T, TKey>)>)>>)>)>
Key selector expression of an index, see KeySelector.

Type Parameters

TKey
The type of the index key.

Return Value

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

See Also