Version 3.3.1.2

DefaultSerializationBinder class

Namespace: Sirenix.Serialization
Assembly: Sirenix.Serialization
public class DefaultSerializationBinder : TwoWaySerializationBinder
Provides a default, catch-all TwoWaySerializationBinder implementation. This binder only includes assembly names, without versions and tokens, in order to increase compatibility.
Inheritance

Constructors

DefaultSerializationBinder()
public DefaultSerializationBinder()

Methods

BindToName(Type, DebugContext)
Bind a type to a name.
public override string BindToName(Type type, DebugContext debugContext = null)
Parameters
System.Type type

The type to bind.

DebugContext debugContext

The debug context to log to.

Returns
System.String

The name that the type has been bound to.

Exceptions
System.ArgumentNullException

The type argument is null.

BindToType(String, DebugContext)
Binds a name to type.
public override Type BindToType(string typeName, DebugContext debugContext = null)
Parameters
System.String typeName

The name of the type to bind.

DebugContext debugContext

The debug context to log to.

Returns
System.Type

The type that the name has been bound to, or null if the type could not be resolved.

Exceptions
System.ArgumentNullException

The typeName argument is null.

ContainsType(String)
Determines whether the specified type name is mapped.
public override bool ContainsType(string typeName)
Parameters
System.String typeName

Returns
System.Boolean