Open sandboxFocus

Constructor SerializerAttribute

SerializerAttribute(Type)

Initializes a new instance of the SerializerAttribute class.

Declaration
public SerializerAttribute(Type serializerType)
Parameters
Type Name Description
Type serializerType

The serializer type. This type must implement ISerializer or ISerializerFactory, and must have a public default constructor. If serializerType is a generic type, it must have the same number of generic type parameters as the target type, and have a compatible set of constraints.