I was trying to add a value through the Invoke method , to add in a list. but was not able to complete as getting
“‘List`1’ does not have a public instance method named ‘add’ matching the parameter types, generic type arguments, and generic type constraints supplied to InvokeMethod ‘Invoke method’”
sharing the screeshot herewith.
It will be a great help if you can provide me the right direction.
Thanks for your reply.
What i found that , the method name i was using was “add” and it was throwing the above error, but by updating the name to “Add” it worked.not showing the above mentioned error.
@Manjuts90 I try to add the multiple element from the array to the list or directly using the collections parameter in the invoke method it will show me the error while creating so the workaround I did is to iterate through each element and then invoke the add method for each element. The screen shot for the earlier method where I was getting error is attached below