System.IConvertible.ToType Method

Converts the value of this instance to an object of the specified Type that has an equivalent value, using the specified culture-specific formatting information.

Syntax

public object ToType (Type conversionType, IFormatProvider provider)

Parameters

conversionType
The Type to which the value of this instance is converted.
provider
An IFormatProvider interface implementation that supplies culture-specific formatting information.

Returns

An object instance of type conversionType whose value is equivalent to the value of this instance.

Remarks

Documentation for this section has not yet been entered.

Requirements

Namespace: System
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0, 4.0.0.0