PostSharp 2023.0 / / Post­Sharp Documentation / API Reference / Post­Sharp.​Serialization Namespace / Serializer­Factory­Provider Class / Serializer­Factory­Provider Methods / Serializer­Factory­Provider.​Get­Serializer­Factory Method

SerializerFactoryProvider.GetSerializerFactory Method

Gets the instance of ISerializerFactory

Namespace:  PostSharp.Serialization
Assembly:  PostSharp (in PostSharp.dll) Version: 2023.0.3.0 (2023.0.3.0)
Syntax
C#
public virtual ISerializerFactory GetSerializerFactory(
	Type objectType
)

Parameters

objectType
Type: System.Type
Type of object being serialized or deserialized. If a surrogate type has been specified during serialization, this parameter is set to the surrogate type during deserialization.

Return Value

Type: ISerializerFactory
An instance of ISerializerFactory able to serialize or deserialize objectType, or null if there is no known serializer factory for this object.

Implements

ISerializerFactoryProvider.GetSerializerFactory(Type)
Remarks

It is not the responsibility of this class to call the next provider (NextProvider).

See Also