Windows Dev Center

Int32.IConvertible.ToType Method

This API supports the .NET Framework infrastructure and is not intended to be used directly from your code.

For a description of this member, see IConvertible.ToType.

Namespace:  System
Assembly:  mscorlib (in mscorlib.dll)

Object IConvertible.ToType(
	Type type,
	IFormatProvider provider


Type: System.Type
The type to which to convert this Int32 value.
Type: System.IFormatProvider
An IFormatProvider implementation that provides information about the format of the returned value.

Return Value

Type: System.Object
The value of the current instance, converted to type.


IConvertible.ToType(Type, IFormatProvider)

This member is an explicit interface member implementation. It can be used only when the Int32 instance is cast to an IConvertible interface. The recommended alternative is to call the static (Shared in Visual Basic) Convert.ChangeType method instead.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

© 2015 Microsoft