Aerospike.Database.LINQPadDriver.Extensions Namespace
Aerospike LINDPad Driver

AValue..::..ToDictionary<(Of <(<'K, V>)>)> Method (Func<(Of <(<'AValue, K>)>)>, Func<(Of <(<'AValue, V>)>)>)

Tries to convert Value to a IDictionary. If not possible an empty IDictionary is returned.

Namespace:  Aerospike.Database.LINQPadDriver.Extensions
Assembly:  Aerospike.Database.LINQPadDriver (in Aerospike.Database.LINQPadDriver.dll)

Syntax


public IDictionary<K, V> ToDictionary<K, V>(
	Func<AValue, K> keySelector,
	Func<AValue, V> valueSelector
)

Type Parameters

K
The key value as type K.
V
The value as type V.

Parameters

keySelector
Type: Func<(Of <(<'AValue, K>)>)>
The function that will transform the key as an AValue to K.
valueSelector
Type: Func<(Of <(<'AValue, V>)>)>
The function that will transform the value as an AValue to V.

Return Value

An IDictionary, if possible, or an empty IDictionary.