I have a problem with this:
objectType.GetMethod("setValues").Invoke(testClass, arguments);
arguments is an array of objects, can any member of it be an array of any type like this int[]???
I’m asking this because I have an exception when passing arguments with an int[] array as a member in it, this is the exception:
System.ArgumentException: Object of type ‘System.Object[]’ cannot be converted to type ‘System.Int32[]’.
Any suggestions??
Yes, you should be able to pass an array of integers as one of the parameters to a reflection call. From the error it looks like what you think is an array of integers is actually an array of objects though.