using System;
namespace CPF.Windows.Json
{
///
/// 对Model进行Json反序列化时指定一个构造函数
/// Specify a constructor for Json deserialization of Model
///
[AttributeUsage(AttributeTargets.Constructor)]
public class JsonDeserializeCtorAttribute : Attribute
{
internal object[] _args;
///
/// 反序列化时的指定构造函数以及参数,args必须和构造函数参数匹配
/// Deserializing the specified constructor and parameters, args must match the constructor parameters
///
/// 该构造函数的参数,The parameters of the constructor
public JsonDeserializeCtorAttribute(params object[] args)
{
_args = args;
}
}
}