SerializerAttribute Constructor |
Initializes a new SerializerAttribute.
Namespace: PostSharp.Serialization
Assembly: PostSharp (in PostSharp.dll) Version: 2023.0.3.0 (2023.0.3.0)
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.