mirror of
https://gitee.com/langsisi_admin/serein-flow
synced 2026-03-20 08:16:34 +08:00
先想到这吧
This commit is contained in:
@@ -99,7 +99,7 @@ namespace Serein.NodeFlow.Tool.SereinExpression
|
||||
.ToArray();
|
||||
|
||||
var method = target.GetType().GetMethod(methodName);
|
||||
if (method == null)
|
||||
if (method is null)
|
||||
{
|
||||
throw new ArgumentException($"Method {methodName} not found on target.");
|
||||
}
|
||||
@@ -125,7 +125,7 @@ namespace Serein.NodeFlow.Tool.SereinExpression
|
||||
foreach (var member in members)
|
||||
{
|
||||
|
||||
if (target == null) return null;
|
||||
if (target is null) return null;
|
||||
|
||||
|
||||
var property = target.GetType().GetProperty(member);
|
||||
|
||||
Reference in New Issue
Block a user