Foreach generic list<T> bug (#303)
When giving a generic list to foreach throw exception to casting object list. better to keeping just IList.
This commit is contained in:
parent
c24a6d28e9
commit
b01c4ef7fa
|
|
@ -1,4 +1,4 @@
|
|||
using System.Collections.Generic;
|
||||
using System.Collections;
|
||||
using System.Threading;
|
||||
using System.Threading.Tasks;
|
||||
using Elsa.Attributes;
|
||||
|
|
@ -22,9 +22,9 @@ namespace Elsa.Activities.ControlFlow.Activities
|
|||
}
|
||||
|
||||
[ActivityProperty(Hint = "Enter an expression that evaluates to an array of items to iterate over.")]
|
||||
public WorkflowExpression<IList<object>> CollectionExpression
|
||||
public WorkflowExpression<IList> CollectionExpression
|
||||
{
|
||||
get => GetState(() => new JavaScriptExpression<IList<object>>("[]"));
|
||||
get => GetState(() => new JavaScriptExpression<IList>("[]"));
|
||||
set => SetState(value);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue