Check out example codes for "c# return two variables of different types". It will help you in understanding the concepts better.
Code Example 1
(string, string, int) LookupName(long id) // tuple return type
{
... // retrieve first, middle and myNum from data storage
return (first, middle, myNum); // tuple literal
}
Learn ReactJs, React Native from akashmittal.com