Add
我有一个 Workflow Foundation 4 活动,它有一个 InvokeMethod,它被配置为在 type 的实例上调用该方法IList(Of String)
,并提供一个 type 的参数String
。
运行它虽然给了我这个错误:
'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'.
我已经尝试了我能想到的 InvokeMethod 活动的所有设置,但无济于事。
所以问题是:如何让 InvokeMethod 将字符串参数添加到泛型列表中?