For example I have C# method like this:
void someMethod(String arg1, params object[] extras)
{
foreach (object extra in extras)
{
Console.WriteLine(extra);
}
}
When I call it like this:
int[] vals = new int[] { 10, 25 };
someMethod("String", vals);
I get output:
System.Int32[]
Actually I wanted to pass vals variable as multiple int arguments, not as a single argument of array type, is there any way to do it?
someMethod("String", 10, 25);?