WeakAssemblySerializationBinderBindToName Method

When OmitAssemblyNameOnSerialize is , suppresses the assembly name on serialization. Otherwise, returns for both assembly and type names, indicating that the original names should be used.

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 that is being serialized.
assemblyName  String
If OmitAssemblyNameOnSerialize is , then returns * to indicate an omitted assembly; otherwise, returns .
typeName  String
If OmitAssemblyNameOnSerialize is , then returns the full name of the type without assembly information; otherwise, returns .

Implements

ISerializationBinderBindToName(Type, String, String)

Remarks

  Note

In .NET Framework 3.5 this method does not exist in the base SerializationBinder and is called only if the consumer serializer handles the ISerializationBinder interface or calls it directly.

See Also