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:
Mert YILDIZ 2020-05-06 13:58:13 +03:00 committed by GitHub
parent c24a6d28e9
commit b01c4ef7fa
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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);
}