3
我有一個Workflow Foundation 4活動,該活動具有一個InvokeMethod,該活動被配置爲調用IList(Of String)
類型的實例上的Add
方法,從而提供參數類型String
。如何使用InvokeMethod活動將字符串添加到使用Workflow Foundation的通用列表4
運行它雖然給了我這個錯誤:
'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將字符串參數添加到通用列表中?
謝謝,很高興看到有這樣一個簡單的解決方案。 – 2010-05-19 08:19:24