C# Class Newtonsoft.Json.Serialization.DefaultSerializationBinder

The default serialization binder used when resolving and loading classes from type names.
Inheritance: System.Runtime.Serialization.SerializationBinder, ISerializationBinder
Datei anzeigen Open project: JamesNK/Newtonsoft.Json Class Usage Examples

Public Methods

Method Description
BindToName ( Type serializedType, string &assemblyName, string &typeName ) : void
BindToType ( string assemblyName, string typeName ) : Type

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

DefaultSerializationBinder ( ) : System

Initializes a new instance of the DefaultSerializationBinder class.

Private Methods

Method Description
GetGenericTypeFromTypeName ( string typeName, Assembly assembly ) : Type
GetTypeByName ( TypeNameKey typeNameKey ) : Type
GetTypeFromTypeNameKey ( TypeNameKey typeNameKey ) : Type

Method Details

BindToName() public method

public BindToName ( Type serializedType, string &assemblyName, string &typeName ) : void
serializedType System.Type
assemblyName string
typeName string
return void

BindToType() public method

When overridden in a derived class, controls the binding of a serialized object to a type.
public BindToType ( string assemblyName, string typeName ) : Type
assemblyName string Specifies the name of the serialized object.
typeName string Specifies the name of the serialized object.
return System.Type

DefaultSerializationBinder() public method

Initializes a new instance of the DefaultSerializationBinder class.
public DefaultSerializationBinder ( ) : System
return System