PostSharpAPI ReferencePost­Sharp.​SerializationISerializerConvert
Open sandboxFocus

ISerializer.Convert Method

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.

System.Type targetType

target type.

Returns
Type Description
Object

The value converted to targetType.

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.