Skip to content

Latest commit

 

History

History
26 lines (19 loc) · 3.09 KB

BinarySerializationContext.md

File metadata and controls

26 lines (19 loc) · 3.09 KB

BinarySerializationContext Class

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.