System.Single.System.IConvertible.ToType Method

For a description of this member, see IConvertible.ToType(Type, IFormatProvider).

Syntax

object System.IConvertible.ToType (Type targetType, IFormatProvider provider)

Parameters

targetType
Documentation for this section has not yet been entered.
provider
An object that supplies information about the format of the returned value.

Returns

The value of the current instance, converted to type.

Remarks

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

Requirements

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