SerializerFactoryProvider.GetSurrogateType Method |
Namespace: PostSharp.Serialization
Assembly: PostSharp (in PostSharp.dll) Version: 2023.0.3.0 (2023.0.3.0)
public virtual Type GetSurrogateType( Type objectType )
Parameters
- objectType
- Type: System.Type
Type of the object being serialized.
Return Value
Type: TypeThe surrogate type for objectType, or null (or objectType) is objectType does not require a surrogate type.
Implements
ISerializerFactoryProvider.GetSurrogateType(Type)This method is called only during serialization. The surrogate type is the type whose name will be serialized; therefore, it will also be the type that will be deserialized.
It is not the responsibility of this class to call the next provider (NextProvider).