PostSharp.Serialization Namespace |
Class | Description | |
---|---|---|
ActivatorProvider |
Provides instances of classes implementing the IActivator interface. You should not use this class in user code.
| |
ActivatorSecurityToken |
Security token passed to the CreateInstance(Type, ActivatorSecurityToken) method of the IActivator interface.
| |
ActivatorTypeAttribute |
Custom attribute that, when applied to an assembly, points to a type in the assembly implementing IActivator.
| |
ImportSerializerAttribute |
Custom attribute that, when applied to a serializable type, specifies that the serializer of this type has
a dependency on another serializer. The custom attribute can be applied at assembly level; it then
applies to all serializable types in this assembly.
| |
PNonSerializedAttribute |
Custom attribute that, when applied to a field of a class annotated with PSerializableAttribute,
specifies that this field should not be serialized.
| |
PortableFormatter |
A serializer designed to serialize the internal structure of types with support for cyclic object graphs.
The PortableFormatter is very similar in function and design to the BinaryFormatter,
but is supported on most platforms and does not require full trust. Both formatters have similar usage:
SerializableAttribute is replaced by PSerializableAttribute and
NonSerializedAttribute by PNonSerializedAttribute.
| |
PortableSerializationBinder |
Binds types to names and names to types. Used by the PortableFormatter.
| |
PortableSerializationException |
Exception thrown by the PortableFormatter.
| |
PSerializableAttribute |
Custom attribute that, when applied to a type, causes PostSharp to generate a serializer for use by the PortableFormatter.
| |
ReferenceTypeSerializer |
Base serializer for all reference types.
| |
SerializationServices |
Provides some utility method for the current namespace.
| |
SerializerAttribute |
Custom attribute that, when applied to a type, specifies its serializer for use by the PortableFormatter.
| |
SerializerFactoryProvider |
Provides instances of the ISerializerFactory interface for object types that have been previously registered
using AddSerializer(Type, Type).
| |
ValueTypeSerializer<T> |
Base serializer for all value types.
|
Structure | Description | |
---|---|---|
DottedString |
Encapsulates dotted strings such as namespaces and type names, so their
serialization by PortableFormatter can be optimized.
|
Interface | Description | |
---|---|---|
IActivator |
Exposes a method CreateInstance(Type, ActivatorSecurityToken), which allows to create an instance of a type using the Activator facility.
| |
IArgumentsReader |
Provides read access to the collection of deserialized arguments.
| |
IArgumentsWriter |
Provides write access to a collection of arguments that need to be serialized.
| |
ISerializationCallback |
Interface that can be implemented by serializable classes.
It defines methods OnDeserialized() and OnSerializing() called during serialization.
| |
ISerializer |
Defines the semantics of an object serializer.
| |
ISerializerDiscoverer |
Exposes a method that allows implementations
of the interface to discover serializer types
for each type being serialized.
| |
ISerializerFactory |
Defines a method CreateSerializer(Type), which creates instances of the ISerializer interface for
given object types.
| |
ISerializerFactoryProvider |
Provides instances of the ISerializerFactory interface given the object type.
|