ISerializationBinder
Allows users to control class loading and mandate what class to load.
using System;
using System.
Runtime.
CompilerServices;
namespace Newtonsoft.
Json.
Serialization
{
[
System.
Runtime.
CompilerServices.
NullableContext(
1)]
public interface ISerializationBinder
{
Type BindToType([
System.
Runtime.
CompilerServices.
Nullable(
2)]
string assemblyName,
string typeName);
[
System.
Runtime.
CompilerServices.
NullableContext(
2)]
void BindToName([
System.
Runtime.
CompilerServices.
Nullable(
1)]
Type serializedType,
out string assemblyName,
out string typeName);
}
}