Tortuga.Chain Namespace
Tortuga.Chain.CommandBuilders Namespace
Tortuga.Chain.Metadata Namespace

TableDbCommandBuilder<(Of <(<'TCommand, TParameter, TLimit, TObject>)>)>..::..ToImmutableDictionary<(Of <(<'TKey>)>)> Method (Func<(Of <(<'TObject, TKey>)>)>, DictionaryOptions)

Materializes the result as a immutable dictionary of objects.

Namespace:  Tortuga.Chain.CommandBuilders
Assembly:  Tortuga.Chain.Core (in Tortuga.Chain.Core.dll)

Syntax


public IConstructibleMaterializer<ImmutableDictionary<TKey, TObject>> ToImmutableDictionary<TKey>(
	Func<TObject, TKey> keyFunction,
	DictionaryOptions dictionaryOptions
)
Public Function ToImmutableDictionary(Of TKey) ( _
	keyFunction As Func(Of TObject, TKey), _
	dictionaryOptions As DictionaryOptions _
) As IConstructibleMaterializer(Of ImmutableDictionary(Of TKey, TObject))
public:
generic<typename TKey>
IConstructibleMaterializer<ImmutableDictionary<TKey, TObject>^>^ ToImmutableDictionary(
	Func<TObject, TKey>^ keyFunction, 
	DictionaryOptions^ dictionaryOptions
)

Type Parameters

TKey
The type of the key.

Parameters

keyFunction
Type: Func<(Of <(<'TObject, TKey>)>)>
The key function.
dictionaryOptions
Type: Tortuga.Chain..::..DictionaryOptions
The dictionary options.

Return Value