Vector<T>.Get Method

Definition

Namespace: Numerics.NET
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.0

Overload List

Get<K>(K) Gets the value with the specified key.
Get<K1, K2>(K1, K2) Gets the value at the specified key.

Get<K>(K)

Gets the value with the specified key.
C#
public T Get<K>(
	K key
)

Parameters

key  K
The key to look up.

Type Parameters

K
The element type of the vector's index.

Return Value

T
The value with key key.

Exceptions

InvalidOperationException

The vector does not have an index.

InvalidCastException

The element type of the vector's index is not K.

KeyNotFoundException

key was not found in the vector's index.

Get<K1, K2>(K1, K2)

Gets the value at the specified key.
C#
public T Get<K1, K2>(
	K1 key1,
	K2 key2
)

Parameters

key1  K1
The first level value of the key to look up.
key2  K2
The second level value of the key to look up.

Type Parameters

K1
The element type of the first level of the vector's index.
K2
The element type of the second level of the vector's index.

Return Value

T
The value with key key1, key2.

Exceptions

InvalidOperationException

The vector does not have an index.

InvalidCastException

The element type of the vector's index is not K1, K2.

KeyNotFoundException

The pair key1, key2 was not found in the vector's index.

See Also