Enum.IConvertible.ToType(Type, IFormatProvider) Method

Definition

Converts the current value to a specified type based on the underlying type.

 virtual System::Object ^ System.IConvertible.ToType(Type ^ type, IFormatProvider ^ provider) = IConvertible::ToType;
object IConvertible.ToType (Type type, IFormatProvider provider);

Parameters

type
Type

The type to convert to.

provider
IFormatProvider

An object that supplies culture-specific formatting information.

Returns

The converted value.

Implements

Remarks

Uses Convert to perform the conversion.

Applies to