PostSharp//API Reference/Post­Sharp.​Aspects.​Serialization/Binary­Aspect­Serialization­Binder/Bind­To­Type
Open sandboxFocus

Method BindToType

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 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.