return two values from method in c# code example
Example: c# return two variables of different types
(string, string, int) LookupName(long id) // tuple return type
{
... // retrieve first, middle and myNum from data storage
return (first, middle, myNum); // tuple literal
}