Class TypeResolverSerializationBinder
A type resolver serialization binder.
Inheritance
System.Object
System.Runtime.Serialization.SerializationBinder
Newtonsoft.Json.Serialization.DefaultSerializationBinder
TypeResolverSerializationBinder
Implements
Newtonsoft.Json.Serialization.ISerializationBinder
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Kephas.Serialization.Json
Assembly: Kephas.Serialization.Json.dll
Syntax
public class TypeResolverSerializationBinder : DefaultSerializationBinder, ISerializationBinder
Constructors
| Improve this Doc View SourceTypeResolverSerializationBinder(ITypeResolver)
Initializes a new instance of the TypeResolverSerializationBinder class.
Declaration
public TypeResolverSerializationBinder(ITypeResolver typeResolver)
Parameters
Type | Name | Description |
---|---|---|
ITypeResolver | typeResolver | The type resolver. |
Methods
| Improve this Doc View SourceBindToName(Type, out String, out String)
When overridden in a derived class, controls the binding of a serialized object to a type.
Declaration
public override void BindToName(Type serializedType, out string assemblyName, out string typeName)
Parameters
Type | Name | Description |
---|---|---|
System.Type | serializedType | The type of the object the formatter creates a new instance of. |
System.String | assemblyName | [out] Specifies the System.Reflection.Assembly name of the serialized object. |
System.String | typeName | [out] Specifies the System.Type name of the serialized object. |
Overrides
Newtonsoft.Json.Serialization.DefaultSerializationBinder.BindToName(System.Type, System.String, System.String)
|
Improve this Doc
View Source
BindToType(String, String)
Resolves the type with the provided assembly name and type name.
Declaration
public override Type BindToType(string assemblyName, string typeName)
Parameters
Type | Name | Description |
---|---|---|
System.String | assemblyName | Name of the assembly. |
System.String | typeName | Name of the type. |
Returns
Type | Description |
---|---|
System.Type | A Type. |
Overrides
Newtonsoft.Json.Serialization.DefaultSerializationBinder.BindToType(System.String, System.String)
Implements
Newtonsoft.Json.Serialization.ISerializationBinder