mirror of
https://gitee.com/langsisi_admin/serein-flow
synced 2026-04-12 10:56:34 +08:00
优化了Workbench上的操作。
This commit is contained in:
@@ -216,8 +216,8 @@ namespace Serein.Library
|
||||
MethodName = this.MethodName,
|
||||
MethodAnotherName = this.MethodAnotherName,
|
||||
NodeType = this.MethodDynamicType.ToString(),
|
||||
ParameterDetailsInfos = this.ParameterDetailss.Select(p => p.ToInfo()).ToArray(),
|
||||
ReturnTypeFullName = this.ReturnType.FullName,
|
||||
ParameterDetailsInfos = this.ParameterDetailss?.Select(p => p.ToInfo()).ToArray(),
|
||||
ReturnTypeFullName = this.ReturnType?.FullName,
|
||||
IsParamsArgIndex = this.ParamsArgIndex,
|
||||
};
|
||||
}
|
||||
|
||||
@@ -174,9 +174,9 @@ namespace Serein.Library
|
||||
IsParams = this.IsParams,
|
||||
DataTypeFullName = this.DataType.FullName,
|
||||
Name = this.Name,
|
||||
ExplicitTypeFullName = this.ExplicitType.FullName,
|
||||
ExplicitTypeFullName = this.ExplicitType?.FullName,
|
||||
InputType = this.InputType.ToString(),
|
||||
Items = this.Items.Select(it => it).ToArray(),
|
||||
Items = this.Items?.Select(it => it).ToArray(),
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
@@ -200,6 +200,10 @@ namespace Serein.Library.Utils
|
||||
/// <returns></returns>
|
||||
public static T ValueParse<T>(object value) where T : struct, IComparable<T>
|
||||
{
|
||||
if (value is T data)
|
||||
{
|
||||
return data;
|
||||
}
|
||||
string valueStr = value.ToString();
|
||||
return valueStr.ToValueData<T>() ;
|
||||
}
|
||||
@@ -228,7 +232,8 @@ namespace Serein.Library.Utils
|
||||
{
|
||||
if (string.IsNullOrEmpty(valueStr))
|
||||
{
|
||||
return default(T);
|
||||
throw new NullReferenceException();
|
||||
//return default(T);
|
||||
}
|
||||
var type = typeof(T);
|
||||
object result;
|
||||
|
||||
Reference in New Issue
Block a user