PostSharpAPI ReferencePost­Sharp.​SerializationSerializer­Attribute
Open sandboxFocus

SerializerAttribute Class

Custom attribute that, when applied to a type, specifies its serializer for use by the PortableFormatter.

Inheritance
SerializerAttribute
Namespace: PostSharp.Serialization
Assembly: PostSharp.dll
Syntax
public sealed class SerializerAttribute : Attribute
Remarks

The use of the SerializerAttribute is optional if the serializer of a type is a nested class of that class named Serializer.

Windows Phone 7.0 does not allow to assign generic types to parameters of custom attributes.

Constructors

Name Description
SerializerAttribute(Type)

Initializes a new SerializerAttribute.

Properties

Name Description
SerializerType

Gets the serializer type.

See Also