Answers for "how to return multiple values from a function using c#"

C#
1

c# method returns multiple values

public Tuple<int, int> GetMultipleValue()
{
     return Tuple.Create(1,2);
}
Posted by: Guest on September-30-2020
1

c# return two values

public void getValues( out int i, out int j)
{
  i = // output 1;
  j = // output 2;
}
Posted by: Guest on March-05-2021

Code answers related to "how to return multiple values from a function using c#"

C# Answers by Framework

Browse Popular Code Answers by Language