using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Serein.Library.Entity
{
///
/// 方法入参描述
///
public class ParameterDetailsInfo
{
///
/// 参数索引
///
public int Index { get; set; }
///
/// 方法需要的类型
///
public string DataTypeFullName { get; set; }
///
/// 方法入参参数名称
///
public string Name { get; set; }
}
///
/// 节点入参参数详情
///
public class ParameterDetails
{
///
/// 转为描述
///
///
public ParameterDetailsInfo ToInfo()
{
return new ParameterDetailsInfo
{
Index = Index,
DataTypeFullName = DataType.FullName,
Name = Name
};
}
///
/// 拷贝新的对象。
///
///
public ParameterDetails Clone() => new ParameterDetails()
{
Index = Index,
IsExplicitData = IsExplicitData,
ExplicitType = ExplicitType,
ExplicitTypeName = ExplicitTypeName,
Convertor = Convertor,
DataType = DataType,
Name = Name,
DataValue = string.IsNullOrEmpty(DataValue) ? string.Empty : DataValue,
Items = Items.Select(it => it).ToArray(),
};
///
/// 参数索引
///
public int Index { get; set; }
///
/// 是否为显式参数(固定值/表达式)
///
public bool IsExplicitData { get; set; }
///
/// 转换器 IEnumConvertor<,>
///
public Func