ReferenceTypeSerializer.Convert Method |
Namespace: PostSharp.Serialization
Assembly: PostSharp (in PostSharp.dll) Version: 2023.0.3.0 (2023.0.3.0)
public virtual Object Convert( Object value, Type targetType )
Parameters
- value
- Type: System.Object
Value to be converted. - targetType
- Type: System.Type
target type.
Return Value
Type: ObjectThe value converted to targetType.
Implements
ISerializer.Convert(Object, Type)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.