PostSharp5.0//API Reference/Post­Sharp.​Serialization Namespace/Serializer­Attribute Class

SerializerAttribute Class

Custom attribute that, when applied to a type, specifies its serializer for use by the PortableFormatter.
Inheritance Hierarchy
System.Object
  System.Attribute
    PostSharp.Serialization.SerializerAttribute

Namespace:  PostSharp.Serialization
Assembly:  PostSharp (in PostSharp.dll) Version: 5.0.55.0 (5.0.55.0)
Syntax
C#
public sealed class SerializerAttribute : Attribute

The SerializerAttribute type exposes the following members.

Constructors
  NameDescription
Public methodSerializerAttribute
Initializes a new SerializerAttribute.
Properties
  NameDescription
Public propertySerializerType
Gets the serializer type.
Extension Methods
  NameDescription
Public Extension MethodQueryInterface<T>
Gets the implementation of a specified interface for the specified object.
(Defined by QueryInterfaceExtensions.)
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.

See Also