ArrayModelBinder<TElement>.ConvertToCollectionType Method

Definition

Gets an Object assignable to targetType that contains members from collection.

protected:
 override System::Object ^ ConvertToCollectionType(Type ^ targetType, System::Collections::Generic::IEnumerable<TElement> ^ collection);
protected override object ConvertToCollectionType (Type targetType, System.Collections.Generic.IEnumerable<TElement> collection);
protected override object? ConvertToCollectionType (Type targetType, System.Collections.Generic.IEnumerable<TElement?> collection);
override this.ConvertToCollectionType : Type * seq<'Element> -> obj
Protected Overrides Function ConvertToCollectionType (targetType As Type, collection As IEnumerable(Of TElement)) As Object

Parameters

targetType
Type

Type of the model.

collection
IEnumerable<TElement>

Collection of values retrieved from value providers. null if nothing was bound.

Returns

An Object assignable to targetType. null if nothing was bound.

Applies to