From 36de8cd8094848196405e64050bfee416d9e118a Mon Sep 17 00:00:00 2001 From: Michael Rybakin Date: Tue, 10 Oct 2023 21:16:22 +0400 Subject: [PATCH] =?UTF-8?q?=D0=9F=D0=B5=D1=80=D0=B5=D0=B4=D0=B0=D1=87?= =?UTF-8?q?=D0=B0=20=D0=B2=20=D0=B4=D0=B5=D0=BB=D0=B5=D0=B3=D0=B0=D1=82=20?= =?UTF-8?q?=D0=B7=D0=BD=D0=B0=D1=87=D0=B5=D0=BD=D0=B8=D0=B9=20=D0=BF=D0=B5?= =?UTF-8?q?=D1=80=D0=B5=D0=BC=D0=B5=D0=BD=D0=BD=D1=8B=D1=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/OneScript.StandardLibrary/DelegateAction.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/OneScript.StandardLibrary/DelegateAction.cs b/src/OneScript.StandardLibrary/DelegateAction.cs index cad964779..017b7844f 100644 --- a/src/OneScript.StandardLibrary/DelegateAction.cs +++ b/src/OneScript.StandardLibrary/DelegateAction.cs @@ -42,7 +42,8 @@ public DelegateAction(Func action) public DelegateAction(Func action) { - _action = parameters => (IValue)action(parameters.Cast().ToArray()); + _action = parameters => action( parameters.Select(x=>x.GetRawValue()) + .Cast().ToArray() ); } public override bool DynamicMethodSignatures => true;