Is it possible for a function to return two values?
Array is possible if the two values are both the same type, but how do you return two different type values?
In C# you can return more than one value using an out parameter. See example in the TryParse method of Int32 struct. It returns bool and an integer in an out parameter.