Show / Hide Table of Contents

Class SerializationContext

This context can provide a custom SerilizationBinder to the legacy binary serialization.

Inheritance
object
SerializationContext
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
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
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 SerializationBinder.

Declaration
public static IDisposable UseContext(SerializationBinder binder)
Parameters
Type Name Description
SerializationBinder binder
Returns
Type Description
IDisposable

An 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