I have MethodBases for two functions:
public static int Add(params int[] parameters) { /* ... */ } public static int Add(int a, int b) { /* ... */ } <
public static int Add(params int[] parameters) { /* ... */ } public static int Add(int a, int b) { /* ... */ }
You should wrap the arguments in an array, but the compiler will be confused, so you need to help it a bit:
Eg:
AddMethod.call((object) new int[] {5, 4 });