Public Shared Function ChangeType( _ ByVal value As Object, _ ByVal conversionType As Type _ ) As Object
Dim value As Object Dim conversionType As Type Dim value As Object value = ConvertLogic.ChangeType(value, conversionType)
public static object ChangeType( object value, Type conversionType )
public: static Object^ ChangeType( Object^ value, Type^ conversionType )
Parameters
- value
- An Object that implements the IConvertible interface.
- conversionType
- The Type to which value is to be converted.
Return Value
An object whose Type is conversionType (or conversionType's underlying type if conversionType
is Nullable<>) and whose value is equivalent to value. -or- a null reference, if value is a null
reference and conversionType is not a value type.