asp.net.ph

IConvertible.ToType Method

System Namespace   IConvertible Class


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.

The IConvertible type is not CLS-compliant. For more information about CLS compliance, see What is the Common Language Specification.

[ VB ]
<CLSCompliant ( False ) >
Function ToType ( _
   ByVal conversionType As Type, _
   ByVal provider As IFormatProvider _
) As Object

[ C# ]
[CLSCompliant ( false ) ]

object ToType (
   Type conversionType,
   IFormatProvider provider
);

[ C++ ]
[CLSCompliant ( false ) ]

Object* ToType (
   Type* conversionType,
   IFormatProvider* provider
);

[JScript ]
function CLSCompliant ( false )
ToType (
   conversionType : Type,
   provider : IFormatProvider
) : Object;

Parameters

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

Return Value

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

See Also

IConvertible Members Skip Navigation Links




Home
Suggested Reading


Previous page Back to top Next page

© 2000-2010 Rey Nuñez All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note

You can help support asp.net.ph