GenericTypeArgumentConverter.Convert Method

Definition

Returns the type argument at the specified parameter position of the specified generic type.

public:
 virtual System::Object ^ Convert(System::Object ^ value, Type ^ targetType, System::Object ^ parameter, System::Globalization::CultureInfo ^ culture);
public object Convert (object value, Type targetType, object parameter, System.Globalization.CultureInfo culture);
abstract member Convert : obj * Type * obj * System.Globalization.CultureInfo -> obj
override this.Convert : obj * Type * obj * System.Globalization.CultureInfo -> obj
Public Function Convert (value As Object, targetType As Type, parameter As Object, culture As CultureInfo) As Object

Parameters

value
Object

The generic type in the binding source to get the type argument from.

targetType
Type

The type of the binding target property.

parameter
Object

The zero-based position of the type argument to get. This corresponds to the position of the argument in the order it appears in the list of type arguments for the generic type.

culture
CultureInfo

The culture information.

Returns

The type argument.

Implements

Applies to