PostSharpAPI ReferencePost­Sharp.​SerializationSerializer­AttributeSerializer­Attribute
Open sandboxFocus

SerializerAttribute Constructor


Initializes a new SerializerAttribute.

public SerializerAttribute(Type serializerType)
Type Name Description
Type serializerType

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.