// Collection of code snippets by Arne Vajhøj // (from articles on eksperten.dk / vajhoej.dk written sometime between 2004 and now) using System; namespace E { public class Program { public static Tuple M() { return Tuple.Create(123, 456); } public static void Main(string[] args) { Tuple tmp = M(); int v1 = tmp.Item1; int v2 = tmp.Item2; Console.WriteLine($"{v1} {v2}"); } } }