Integer.IConvertible.ToType(Type, IFormatProvider) Method

Definition

Converts this value to the type specified by conversionType.

object IConvertible.ToType(Type conversionType, IFormatProvider? provider);
abstract member System.IConvertible.ToType : Type * IFormatProvider -> obj
override this.System.IConvertible.ToType : Type * IFormatProvider -> obj

Parameters

conversionType
Type

The target type for the conversion.

provider
IFormatProvider

The format provider that supplies culture-specific conversion information.

Returns

This value converted to the requested type.

Implements

Remarks

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to