can i return multiple values from a function in c# code example
Example 1: c# return two values
public void getValues( out int i, out int j)
{
i = // output 1;
j = // output 2;
}
Example 2: c# method returns multiple values
public Tuple<int, int> GetMultipleValue()
{
return Tuple.Create(1,2);
}