Class FormerlyKnownAsBinder
- Namespace
- Homa.Sdk.Foundation
- Assembly
- Homa.Sdk.Foundation.dll
Allows deserialization of types that were renamed or moved to another namespaces.
public sealed class FormerlyKnownAsBinder : ISerializationBinder
- Inheritance
-
FormerlyKnownAsBinder
- Implements
-
ISerializationBinder
- Inherited Members
Methods
BindToName(Type, out string, out string)
When implemented, controls the binding of a serialized object to a type.
public void BindToName(Type serializedType, out string assemblyName, out string typeName)
Parameters
serializedTypeTypeThe type of the object the formatter creates a new instance of.
assemblyNamestringSpecifies the Assembly name of the serialized object.
typeNamestringSpecifies the Type name of the serialized object.
BindToType(string, string)
When implemented, controls the binding of a serialized object to a type.
public Type BindToType(string assemblyName, string typeName)
Parameters
assemblyNamestringSpecifies the Assembly name of the serialized object.
typeNamestringSpecifies the Type name of the serialized object
Returns
- Type
The type of the object the formatter creates a new instance of.