Convert(object, Type)
Converts a value into a given target type.
Declaration
object Convert(object value, Type targetType)
Parameters
Type | Name | Description |
---|---|---|
object | value | Value to be converted. |
Type | targetType | target type. |
Returns
Type | Description |
---|---|
object | The |
Remarks
This method allows for additional flexibility if the serialization-time type is not equal to the deserialization-time. The current method is invoked at deserialization time to perform the conversion.