ModelReaderWriterTypeBuilder.ConvertCollectionBuilder(Object) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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().