Show / Hide Table of Contents

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 Source

Binder

Gets or set the working directory for the debug output files

Declaration
public SerializationBinder Binder { get; }
Property Value
Type Description
System.Runtime.Serialization.SerializationBinder
View Source

Current

Gets the current debug context

Declaration
public static SerializationContext Current { get; }
Property Value
Type Description
SerializationContext

Methods

View Source

UseContext(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.

Extension Methods

CollectionExtensions.AddRange<T, TCollection>(TCollection, IEnumerable<T>)
SerializableObjectCloneExtension.Clone<T>(T)

See Also

SettingInfo
CustomSerializationBinder
  • View Source
Back to top Generated by DocFX