Vector<T>.Get Method
Definition
Namespace: Numerics.NET
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.0
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.
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
TThe value with key key.
Exceptions
Invalid | The vector does not have an index. |
Invalid | The element type of the vector's index is not K. |
Key | key was not found in the vector's index. |
Get<K1, K2>(K1, K2)
Gets the value at the specified key.
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
TThe value with key key1, key2.
Exceptions
Invalid | The vector does not have an index. |
Invalid | The element type of the vector's index is not K1, K2. |
Key | The pair key1, key2 was not found in the vector's index. |