Vector<T>.GetValue<K>(K) Method

This API is preliminary and subject to change.
Gets the value at the specified key.

Definition

Namespace: Extreme.Mathematics
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
C#
public T GetValue<K>(
	K key
)

Parameters

key  K
The key value.

Type Parameters

K
The type of the key.

Return Value

T
The value of the element with key key, or missing if the key could not be found.

Exceptions

InvalidOperationException

The vector is not indexed.

InvalidCastException

The type K does not match the element type of the index.

See Also