I read the C++ version of this question but didn\'t really understand it.
Can someone please explain clearly if it can be done and how?
From this article, you can use three options as posts above said.
KeyValuePair is quickest way.
out is at the second.
Tuple is the slowest.
Anyway, this is depend on what is the best for your scenario.