solution-yes we can pass it like this:
we can declare these variables seperately like this ...but collectively we can't do this as u asked...
i think the method i told u ..it will definitely help u....try it
Note that if you have both of these method constructs, the more exact version is what will be used:
IOW the one with the something(int a, int b, c) is prime because it exactly meets the parameters being called.
If you rearrange the parameters so that the int is in position 0 or one, then it uses the something( params object data) version.
To use the "params" version you could do something like this:
private void something(params object data )
int sum = 0;
foreach (object obj in data)
if(obj.GetType() == typeof(int))
somearray = (int)obj;
foreach (int n in somearray)
sum += n;
else if (obj.GetType() == typeof(int))
sum += (int)obj;