Show / Hide Table of Contents

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 Source

TypeResolverSerializationBinder(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 Source

BindToName(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

Extension Methods

DynamicObjectExtensions.SetPropertyValue(Object, String, Object)
DynamicObjectExtensions.TrySetPropertyValue(Object, String, Object)
DynamicObjectExtensions.GetPropertyValue(Object, String)
DynamicObjectExtensions.TryGetPropertyValue(Object, String, out Object)
DynamicObjectExtensions.GetRuntimeTypeInfo(Object)
DynamicObjectExtensions.ToDynamic(Object)
DynamicObjectExtensions.ToExpando(Object)
BehaviorValue.ToBehaviorValue<TValue>(TValue)
CollectionExtensions.AddRange<T, TItem>(T, IEnumerable<TItem>)
LoggingExtensions.GetLogger(Object, IContext)
TypeExtensions.GetAbstractType(Object)
TypeExtensions.GetAbstractTypeInfo(Object)
ReflectionHelper.GetTypeInfo(Object)
EntityEntryExtensions.TryGetAttachedEntityEntry(Object)
  • Improve this Doc
  • View Source
Back to top Generated by DocFX