Represents a context used by the BinarySerializer to convert types during serialization and deserialization operations.
The context marshalling will not be applied on members of unmanaged type as BinarySerializer just past their memory location with no transformation.
public sealed class BinarySerializationContext :
System.IDisposable
Inheritance System.Object 🡒 BinarySerializationContext
Implements System.IDisposable
Constructors | |
---|---|
BinarySerializationContext() | Initializes a new instance of the BinarySerializationContext class. |
Methods | |
---|---|
Dispose() | Releases inner resources. |
Marshal<TIn,TOut>(Func<TIn,TOut>) | Adds a convertion between the type TIn and the type TOut during a serialization operation. |
Unmarshal<TIn,TOut>(Func<TIn,TOut>) | Adds a convertion between the type TIn and the type TOut during a deserialization operation. |