Click or drag to resize

Usual.IConvertible.ToType Method

X#
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.

Namespace:  XSharp
Assembly:  XSharp.RT (in XSharp.RT.dll) Version: 2.19
Syntax
METHOD IConvertible.ToType(
	conversionType AS Type,
	provider AS IFormatProvider
) AS Object
Request Example View Source

Parameters

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

Return Value

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

Implements

ToType(Type, IFormatProvider)
See Also