Share via


ModelReaderWriterTypeBuilder.ConvertCollectionBuilder(Object) Method

Definition

Converts the passed in builder collection into the requested collection type.

protected virtual object ConvertCollectionBuilder(object collectionBuilder);
abstract member ConvertCollectionBuilder : obj -> obj
override this.ConvertCollectionBuilder : obj -> obj
Protected Overridable Function ConvertCollectionBuilder (collectionBuilder As Object) As Object

Parameters

collectionBuilder
Object

The builder collection that is being transformed.

Returns

The requested collection format.

Remarks

In the case like an array which you cannot dynamically add to CreateInstance() would have returned an instance of List<T> which matches the BuilderType. This method would then convert the List<T> into an array by calling ToArray().

Applies to