6
Answers

parameters in C# method

Photo of fancy

fancy

12y
1.5k
1
I want to pass 5 parameters in a method in C#. 3 of those are int i, string s,int x, ref sVal(string),ref iVal(int).
What is the good approach to do this? Should I use param[]args, list,object??

Thanks
Shals

Answers (6)