Messages about the serialization of aspects and of the objects they reference, with [PSerializable] and the serializers of PostSharp.
| Message | Severity | Description |
|---|---|---|
| SR0001 | Error | The [PSerializable] attribute is added to an interface. |
| SR0002 | Error | A [PSerializable] class derives from a class that has no deserializing constructor. |
| SR0003 | Error | The base constructor that the deserializing constructor of a serializable type must call is not accessible. |
| SR0004 | Error | A serializable type has a read-only field that must be serialized. |
| SR0005 | Error | A serializable type defines the deserializing constructor that PostSharp generates. |
| SR0006 | Error | A serializable type derives from a type that has no serializer. |
| SR0007 | Error | A serializable type derives from a type whose serializer has not been generated, because its assembly was built without PostSharp. |
| SR0008 | Error | The serializer of the base type of a [PSerializable] class does not derive from ReferenceTypeSerializer. |
| SR0009 | Error | The serializer of the base type of a [PSerializable] class is not visible from this class. |
| SR0010 | Error | The serializer of the base type of a [PSerializable] class has no default constructor. |
| SR0011 | Error | The default constructor of the serializer of the base type of a [PSerializable] class is not accessible. |
| SR0012 | Error | The serializer of the base type of a [PSerializable] class seals a method that the generated serializer overrides. |
| SR0013 | Error | The custom serializer of the base type of a [PSerializable] type is sealed. |
| SR0016 | Error | A [PSerializable] type already contains a nested type named Serializer. |