ForwardedTypesSerializationBinderAddType Method

Adds the type to this binder. If no assemblyIdentities are defined, then any Type with the same full name will be resolved to type; otherwise, only the ones, whose identities match.

Definition

Namespace: KGySoft.Serialization.Binary
Assembly: KGySoft.CoreLibraries (in KGySoft.CoreLibraries.dll) Version: 10.5.0
C#
public void AddType(
	Type type,
	params AssemblyName[] assemblyIdentities
)

Parameters

type  Type
The type to be added to the handled types by this binder.
assemblyIdentities  AssemblyName
The legacy assembly identities to be recognized. Can contain also partial names. If empty or contains a element, then any type of the same full name will be resolved to type.

Remarks

If no assembly identities are specified, then any Type that has the same full name as type, will be resolved to the specified type.

If at least one assembly identity is specified and WriteLegacyIdentity is , then on serialization the first specified name will be returned as the assembly name of the type.

For generic types you should specify the generic type definition only.

See Also