Interviews7 answers
How many values return through a method at a time?
7 Answers
Method never return function alone returns ...
MelbinPosted Oct 7, 2018, 6:34 AM EDT
You can return in multiple ways:
using single object which can have many properties. that is standard.
Using Out parameter.
Using Tuple you can return two values.
Amit BansalPosted Aug 19, 2018, 1:23 AM EDT
It can return an object though that object can contain multiple properties
Sandeep KumarPosted Mar 4, 2018, 6:53 PM EST
It depends, if we want to return multiple values, can use tuple, classes, struct or anonymous types
Sathiya MoorthyPosted Feb 17, 2018, 9:09 PM EST
It depends, if we want to return multiple values, can use tuple, classes, struct or anonymous types
Sathiya MoorthyPosted Feb 17, 2018, 9:09 PM EST
Depends on requirements if you want to return multiple string values need to create
Array of string like :
public string[] returnValues()
{
//to do code and return array of string
}
Vinay Kumar GuptaPosted Feb 2, 2018, 6:58 AM EST
No it is not. You can return an object though and that object can contain multiple properties –
Gajendra JangidPosted Jan 30, 2018, 7:18 PM EST






