------ #### ryControls V3.0.2109.1201 - *.[改进]ObjectListView控件的AspectToStringConverter函数新增行数据参数。 - *.[改进]ObjectListView控件的行高默认到25像素。 - *.[改进]ObjectListView控件默认行选择而不是列选择。 - *.[改进]ObjectListView控件新增大量中文注释。 - *.[改进]ObjectListView控件的ShowGroups属性默认值为false。
36 lines
1.6 KiB
C#
36 lines
1.6 KiB
C#
|
|
#if (DOTNET || PORTABLE40 || PORTABLE)
|
|
using System;
|
|
using System.Reflection;
|
|
|
|
namespace Newtonsoft.Json
|
|
{
|
|
/// <summary>
|
|
/// Allows users to control class loading and mandate what class to load.
|
|
/// </summary>
|
|
[Obsolete("SerializationBinder is obsolete. Use ISerializationBinder instead.")]
|
|
public abstract class SerializationBinder
|
|
{
|
|
/// <summary>
|
|
/// When overridden in a derived class, controls the binding of a serialized object to a type.
|
|
/// </summary>
|
|
/// <param name="assemblyName">Specifies the <see cref="Assembly"/> name of the serialized object.</param>
|
|
/// <param name="typeName">Specifies the <see cref="System.Type"/> name of the serialized object</param>
|
|
/// <returns>The type of the object the formatter creates a new instance of.</returns>
|
|
public abstract Type BindToType(string? assemblyName, string typeName);
|
|
|
|
/// <summary>
|
|
/// When overridden in a derived class, controls the binding of a serialized object to a type.
|
|
/// </summary>
|
|
/// <param name="serializedType">The type of the object the formatter creates a new instance of.</param>
|
|
/// <param name="assemblyName">Specifies the <see cref="Assembly"/> name of the serialized object.</param>
|
|
/// <param name="typeName">Specifies the <see cref="System.Type"/> name of the serialized object.</param>
|
|
public virtual void BindToName(Type serializedType, out string? assemblyName, out string? typeName)
|
|
{
|
|
assemblyName = null;
|
|
typeName = null;
|
|
}
|
|
}
|
|
}
|
|
|
|
#endif |