CustomSerializationBinderBindToName Method

Binds a Type to an assemblyName and typeName. This implementation sets assemblyName by using the AssemblyNameResolver property, and sets typeName by using the TypeNameResolver property.

Definition

Namespace: KGySoft.Serialization.Binary
Assembly: KGySoft.CoreLibraries (in KGySoft.CoreLibraries.dll) Version: 10.0.0
C#
public override void BindToName(
	Type serializedType,
	out string?? assemblyName,
	out string?? typeName
)

Parameters

serializedType  Type
The type of the object the formatter creates a new instance of.
assemblyName  String
The string, which will represent the Assembly name in the serialized data. Can return to provide a default name.
typeName  String
The string, which will represent the Type name in the serialized data. Can return to provide a default name.

Implements

ISerializationBinderBindToName(Type, String, String)

See Also