3

IList(Of String) 인스턴스에서 Add 메서드를 호출하도록 매개 변수를 제공하도록 구성된 InvokeMethod가있는 Workflow Foundation 4 활동이 있습니다. 유형은 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를 일반 목록에 문자열 매개 변수를 추가하려면 어떻게해야합니까?

답변

4

왜 AddToCollection 활동을 사용하지 않습니까?

+0

감사합니다. 위와 같은 간단한 해결책이 있습니다. –

관련 문제