By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
454,165 Members | 1,429 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 454,165 IT Pros & Developers. It's quick & easy.

can i pass integer array to methodInfo.invoke

P: n/a
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
Nov 21 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
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

"Sivaraman.S" <Si********@discussions.microsoft.com> wrote in message
news:D6**********************************@microsof t.com...
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

Nov 21 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.