PostSharp.ILAPI ReferencePost­Sharp.​Aspects.​SerializationBinary­Aspect­Serialization­BinderBind­To­Type
Open sandboxFocus

BinaryAspectSerializationBinder.BindToType Method

BindToType(String, String)

When overridden in a derived class, controls the binding of a serialized object to a type.

Declaration
public override Type BindToType(string assemblyName, string typeName)
Parameters
Type Name Description
String assemblyName

Specifies the System.Reflection.Assembly name of the serialized object.

String typeName

Specifies the Type name of the serialized object.

Returns
Type Description
Type

The type of the object the formatter creates a new instance of.