InvokeMember an arrays

  • Thread starter Thread starter Gilgamesh
  • Start date Start date
G

Gilgamesh

How do you pass an array of arrays to InvokeMember? In my case, the method
that InvokeMember is invoking expects a one dimensional array of objects.

Thanks,
Gilgamesh
 
Gilgamesh said:
How do you pass an array of arrays to InvokeMember? In my case, the method
that InvokeMember is invoking expects a one dimensional array of objects.

Just as with any other parameter:

object[] parameterList = new object[]{parameter1, parameter2 etc};

If parameter1 happens to be a reference to an array, so be it.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top