IConvertible.ToType Method
[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]
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.
Assembly: mscorlib (in mscorlib.dll)
Parameters
- conversionType
- Type: System.Type
The Type to which the value of this instance is converted.
- provider
- Type: System.IFormatProvider
An IFormatProvider interface implementation that supplies culture-specific formatting information.
Return Value
Type: System.ObjectAn Object instance of type conversionType whose value is equivalent to the value of this instance.
Show: