using System.Reflection;

namespace ThingsGateway.NewLife.Serialization;

/// <summary>序列化访问上下文</summary>
public class AccessorContext
{
    /// <summary>宿主</summary>
    public IFormatterX? Host { get; set; }

    /// <summary>对象类型</summary>
    public Type? Type { get; set; }

    /// <summary>目标对象</summary>
    public Object? Value { get; set; }

    /// <summary>成员</summary>
    public MemberInfo? Member { get; set; }

    /// <summary>用户对象。存放序列化过程中使用的用户自定义对象</summary>
    public Object? UserState { get; set; }
}