can i pass integer array to methodInfo.invoke

G

Guest

Hi,

Can i pass integer array to methodInfo.Invoke(obj,args()). I am able to
pass only string array to this function. This is the code i have written.

Dim myType As Type = objClass.GetType()
Dim myMethod As MethodInfo = myType.GetMethod("strFnName")
myMethod.Invoke(objClass, Args)

here "strFnName" is the function name and args() is the string array. args()
is the parameter list for that function. I am not able to pass any integer
array to that function.

can anyone help me out in this regard.

Regards,
Sivaraman.S
 
O

One Handed Man \( OHM - Terry Burns \)

Try Boxing the integer

Dim o as Object
Dim i as Integer
o=i



--

OHM ( Terry Burns )
. . . One-Handed-Man . . .
If U Need My Email ,Ask Me

Time flies when you don't know what you're doing
 

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

Top