[]
Finds the only item with the specified key value and throws an exception if there is not exactly one item with that key value.
public virtual T FindSingle(TKey key)
Type | Name | Description |
---|---|---|
TKey | key | The key value to search for. |
Type | Description |
---|---|
T | The item of the collection that contains the specified key value, if found. |