ArrayModelBinder<TElement>.ConvertToCollectionType 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.
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
- 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.