PostSharp 2023.0 / / Post­Sharp Documentation / API Reference / Post­Sharp.​Serialization Namespace / Serializer­Attribute Class / Serializer­Attribute Constructor

SerializerAttribute Constructor

Initializes a new SerializerAttribute.

Namespace:  PostSharp.Serialization
Assembly:  PostSharp (in PostSharp.dll) Version: 2023.0.3.0 (2023.0.3.0)
Syntax
C#
public SerializerAttribute(
	Type serializerType
)

Parameters

serializerType
Type: System.Type
Serializer type. This type must implement ISerializer or ISerializerFactory, and must have a public default constructor. If serializerType is a generic type, if must have the same number of generic type parameters as the target type, and have a compatible set of constraints.
See Also