How to use InvokeMethod activity to add a row to a general list using Workflow Foundation 4

I have a Workflow Foundation 4 activity that has an InvokeMethod that is configured to invoke a method Addon a type instance IList(Of String), providing a type parameter String.

Running it gives me this error:

'IList`1' does not have a public instance method named 'Add' matching the parameter
types, generic type arguments, and generic type constraints supplied to InvokeMethod
'InvokeMethod'.

I tried all the settings for InvokeMethod activity, which I could think of, but to no avail.

So the question is: how to get InvokeMethod to add a string parameter to the general list?

+3
source share
1 answer

AddToCollection?

+4

Source: https://habr.com/ru/post/1746074/


All Articles