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
Loading
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend4days leftRegister
VulpesRank #55 · 29.2K reputationPosted Apr 27, 2013, 7:56 AM EDT
fancy13 reputationPosted Apr 27, 2013, 9:01 AM EDT
fancy13 reputationPosted Apr 29, 2013, 9:29 AM EDT
VulpesRank #55 · 29.2K reputationPosted Apr 29, 2013, 10:30 AM EDT
VulpesRank #55 · 29.2K reputationPosted Apr 29, 2013, 10:39 AM EDT
The output is:
fancy13 reputationPosted Apr 29, 2013, 12:18 PM EDT
thanks again for all ur effort ..