ISerializationBinder Interface

Represents a binder that can convert Type to and from string for serialization.

Definition

Namespace: KGySoft.Serialization.Binary
Assembly: KGySoft.CoreLibraries (in KGySoft.CoreLibraries.dll) Version: 10.0.0
C#
public interface ISerializationBinder

Remarks

Provides the same functionality as the SerializationBinder class but makes the BindToName method available also in .NET Framework 3.5.

If a binder class is used in BinarySerializationFormatter and the class is derived from SerializationBinder and implements this interface, then the BinarySerializationFormatter class is able to bind a Type in both directions even in .NET 3.5

Methods

BindToName Binds a Type to an assemblyName and typeName.
BindToType Gets a Type associated by the provided assemblyName and typeName.

See Also