ForwardedTypesSerializationBinderAddTypes Method

Adds the types to this binder without any specific assembly identity. Each Type that have the same full name as one of the given types, will be able to be resolved from any assembly.

Definition

Namespace: KGySoft.Serialization.Binary
Assembly: KGySoft.CoreLibraries (in KGySoft.CoreLibraries.dll) Version: 8.1.0
C#
public void AddTypes(
	params Type[] types
)

Parameters

types  Type
The types to be added to the handled types by this binder.

Remarks

To resolve types from specific assemblies only use the AddType method.

If WriteLegacyIdentity is , then on serialization a legacy assembly name will be used only for those types, which are decorated by the TypeForwardedFromAttribute attribute.

For generic types it is enough to specify the generic type definition only.

See Also