You can't. Reflection, at best, will give you the fact that the Test
method has the inputParams parameter.
The only way you can do this is if you hook into the runtime, or if you
pass the names of the parameters and the values explicitly.
Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
-
mv*@spam.guard.caspershouse.com
"parez" <ps*****@gmail.comwrote in message
news:11*********************@y66g2000hsf.googlegro ups.com...
Hi All,
int a;
string b;
float c;
Test(a,b,c);
How do i get the the Test function to print a b c
public static Test(params object[] inputParams)
{
foreach (object inputParam in inputParams)
{
print(something);
}
}