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

IMultipleRowDbCommandBuilder<(Of <(<'TObject>)>)>..::..ToImmutableList Method

Materializes the result as an immutable list of objects.

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

Syntax


IConstructibleMaterializer<ImmutableList<TObject>> ToImmutableList(
	CollectionOptions collectionOptions
)
Function ToImmutableList ( _
	collectionOptions As CollectionOptions _
) As IConstructibleMaterializer(Of ImmutableList(Of TObject))
IConstructibleMaterializer<ImmutableList<TObject>^>^ ToImmutableList(
	CollectionOptions^ collectionOptions
)

Parameters

collectionOptions
Type: Tortuga.Chain..::..CollectionOptions
The collection options.

Return Value

Tortuga.Chain.IConstructibleMaterializer<System.Collections.Immutable.ImmutableList<TObject>>.

Exceptions


Remarks


In theory this will offer better performance than ToImmutableArray if you intend to further modify the result.