[]
        
(Showing Draft Content)

C1.LiveLinq.Indexing.Index-2.FindSingle

FindSingle Method

FindSingle(TKey)

Finds the only item with the specified key value and throws an exception if there is not exactly one item with that key value.

Declaration
public virtual T FindSingle(TKey key)
Parameters
Type Name Description
TKey key

The key value to search for.

Returns
Type Description
T

The item of the collection that contains the specified key value, if found.