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; } /// /// 显式类型 /// 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 string[] Items { get; set; } public ExplicitData Clone() => new ExplicitData() { Index = Index, IsExplicitData = IsExplicitData, ExplicitType = ExplicitType, DataType = DataType, ParameterName = ParameterName, ExplicitTypeName = ExplicitTypeName, DataValue = string.IsNullOrEmpty(DataValue) ? string.Empty : DataValue, Items = Items.Select(it => it).ToArray(), }; } }