Function with multiple return values

anonymous object dynamic keyword solution

Tuple solution

Ref and Out Parameters