#if (DOTNET || PORTABLE40 || PORTABLE) using System; using System.Reflection; namespace LC.Newtonsoft.Json { /// /// Allows users to control class loading and mandate what class to load. /// [Obsolete("SerializationBinder is obsolete. Use ISerializationBinder instead.")] public abstract class SerializationBinder { /// /// When overridden in a derived class, controls the binding of a serialized object to a type. /// /// Specifies the name of the serialized object. /// Specifies the name of the serialized object /// The type of the object the formatter creates a new instance of. public abstract Type BindToType(string? assemblyName, string typeName); /// /// When overridden in a derived class, controls the binding of a serialized object to a type. /// /// The type of the object the formatter creates a new instance of. /// Specifies the name of the serialized object. /// Specifies the name of the serialized object. public virtual void BindToName(Type serializedType, out string? assemblyName, out string? typeName) { assemblyName = null; typeName = null; } } } #endif