Class SerializationContext
This context can provide a custom SerilizationBinder to the legacy binary serialization.
Inheritance
System.Object
SerializationContext
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Sartorius.SAF.Serialization
Assembly: Sartorius.SAF.dll
Syntax
public class SerializationContext
Remarks
Generally you don't need to use this. It is used internally by SettingInfo when setting the CustomSerializationBinder.
Properties
View SourceBinder
Gets or set the working directory for the debug output files
Declaration
public SerializationBinder Binder { get; }
Property Value
Type | Description |
---|---|
System.Runtime.Serialization.SerializationBinder |
Current
Gets the current debug context
Declaration
public static SerializationContext Current { get; }
Property Value
Type | Description |
---|---|
SerializationContext |
Methods
View SourceUseContext(SerializationBinder)
Create a new serialization context using the specified System.Runtime.Serialization.SerializationBinder.
Declaration
public static IDisposable UseContext(SerializationBinder binder)
Parameters
Type | Name | Description |
---|---|---|
System.Runtime.Serialization.SerializationBinder | binder |
Returns
Type | Description |
---|---|
System.IDisposable | An System.IDisposable that defines the lifetime of the serialization context. |