Contains types for binary serialization (BinarySerializer, BinarySerializationFormatter)
as well as other binary serialization related classes including serialization binders and surrogate selectors.
Classes
Class | Description | |
---|---|---|
![]() | AnyObjectSerializerWrapper |
Provides a wrapper class for serializing any kind of object, including the ones
that are not marked by the SerializableAttribute, or which are not supported by BinaryFormatter.
Can be useful when an object cannot be serialized by BinarySerializationFormatter so a BinaryFormatter must be used.
When this object is deserialized, the clone of the wrapped original object is returned.
See the Remarks section for details. |
![]() ![]() | BinarySerializationFormatter |
Serializes and deserialized objects in binary format.
See the Remarks section for details and for the differences to BinaryFormatter. |
![]() | BinarySerializer |
Provides public static methods for binary serialization. Most of its methods will use an BinarySerializationFormatter instance internally.
See the Remarks section of the BinarySerializationFormatter class for details and an example. |
![]() ![]() | CustomSerializationBinder |
Provides a very simple customizable SerializationBinder that can convert Type to and from string
by using assignable delegate properties.
See the Examples section for an example. |
![]() | CustomSerializerSurrogateSelector |
An ISurrogateSelector implementation that makes possible to serialize and deserialize any objects,
including non-serializable ones by an IFormatter such as BinarySerializationFormatter
or the legacy BinaryFormatter.
See the Remarks section for details and examples. |
![]() | DeserializingEventArgs |
Provides arguments for the CustomSerializerSurrogateSelector.Deserializing event.
|
![]() ![]() | ForwardedTypesSerializationBinder |
Provides a SerializationBinder that makes possible to serialize and deserialize types with custom assembly identity.
See the Remarks section for details and some examples. |
![]() | GettingFieldEventArgs |
Provides arguments for the CustomSerializerSurrogateSelector.GettingField event.
|
![]() | NameInvariantSurrogateSelector |
An ISurrogateSelector implementation that makes possible to serialize and deserialize objects by
IFormatters without storing field names. This provides compatibility for obfuscated and non-obfuscated versions of an assembly.
See the Remarks section for details. |
![]() | ObjectDataObtainedEventArgs |
Provides arguments for the CustomSerializerSurrogateSelector.ObjectDataObtained event.
|
![]() | ObjectDataRestoredEventArgs |
Provides arguments for the CustomSerializerSurrogateSelector.ObjectDataRestored event.
|
![]() | SerializationInfoExtensions |
Provides extension methods for the SerializationInfo class.
|
![]() | SerializingEventArgs |
Provides arguments for the CustomSerializerSurrogateSelector.Serializing event.
|
![]() | SettingFieldEventArgs |
Provides arguments for the CustomSerializerSurrogateSelector.SettingField event.
|
![]() | WeakAssemblySerializationBinder |
Provides a SerializationBinder instance for IFormatter implementations that can ignore version and token information
of stored assembly name. This makes possible to deserialize objects stored in different version of the original assembly.
See the also the Remarks section of the ForwardedTypesSerializationBinder for details and some examples. |
Interfaces
Interface | Description | |
---|---|---|
![]() ![]() | IBinarySerializable |
Makes possible quick and compact custom serialization of a class by BinarySerializer and BinarySerializationFormatter.
See the Remarks section for examples and details. |
![]() | ISerializationBinder |
Enumerations
Enumeration | Description | |
---|---|---|
![]() | BinarySerializationOptions |
Options for serialization methods in BinarySerializer and BinarySerializationFormatter classes.
|