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?
It is not directly possible. You need to return a single parameter that wraps the two parameters, or use out parameters:
object Method(out object secondResult) { //...
Or:
KeyValuePair Method() { // ..