Interviews4 answers
How can you return more than one value from a method?
4 Answers
1) using tuples
2) using Class and objects
3.) ref and out keyworda
ak hiPosted Jan 31, 2025, 5:20 AM EST
using out parameter
Tripurari sharmaPosted Jul 28, 2021, 12:43 AM EDT
There are multiple ways to do it.
1) by using struct/Class as return type
2) by passing parameters by ref
Nisha RegilPosted Sep 8, 2020, 2:22 AM EDT
You can use out and ref for your requirement.
Ashirwad SatapathiPosted Jul 15, 2020, 6:15 PM EDT

