using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace Serein.Library.Entity { /// /// 节点入参参数信息 /// public class ExplicitData { /// /// 参数索引 /// public int Index { get; set; } /// /// 是否为显式参数(固定值/表达式) /// public bool IsExplicitData { get; set; } /// /// 转换器 IEnumConvertor<,> /// public Func Convertor { get; set; } ///// ///// 显式类型 ///// public Type ExplicitType { get; set; } ///// ///// 显示类型编号> ///// public string ExplicitTypeName { get; set; } /// /// 方法需要的类型 /// public Type DataType { get; set; } /// /// 方法入参参数名称 /// public string ParameterName { get; set; } /// /// 入参值(在UI上输入的文本内容) /// public string DataValue { get; set; } public object[] Items { get; set; } public ExplicitData Clone() => new ExplicitData() { Index = Index, IsExplicitData = IsExplicitData, ExplicitType = ExplicitType, ExplicitTypeName = ExplicitTypeName, Convertor = Convertor, DataType = DataType, ParameterName = ParameterName, DataValue = string.IsNullOrEmpty(DataValue) ? string.Empty : DataValue, Items = Items.Select(it => it).ToArray(), }; } }