get names of parameters

  • Thread starter Thread starter psawant
  • Start date Start date
P

psawant

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);
}

}
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top