Attempts to get the value with the specified key.
Namespace:
Extreme.Mathematics
Assembly:
Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.1
public bool TryGet<K>(
K key,
out T value
)
Public Function TryGet(Of K) (
key As K,
<OutAttribute> ByRef value As T
) As Boolean
public:
generic<typename K>
bool TryGet(
K key,
[OutAttribute] T% value
)
member TryGet :
key : 'K *
value : 'T byref -> bool
Parameters
- key
- Type: K
The key to look up. - value
- Type: T
On return, the retrieved value.
Type Parameters
- K
- The element type of the vector's index.
Return Value
Type:
BooleanThe value with key
key.
Reference