PostSharpAPI ReferencePost­Sharp.​SerializationImport­Serializer­AttributeImport­Serializer­Attribute
Open sandboxFocus

ImportSerializerAttribute Constructor

ImportSerializerAttribute(Type, Type)

Initializes a new ImportSerializerAttribute.

Declaration
public ImportSerializerAttribute(Type objectType, Type serializerType)
Parameters
Type Name Description
System.Type objectType

Type of the object to be made serializable.

System.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 objectType, and have a compatible set of constraints.

See Also