static (int, int) plusTimes(int arg1, int arg2)
return (arg1 + arg2, arg1 * arg2);
public static void Main()
(int a, int b) tup1 = (5, 10);
var tup2 = ("Some text", 10.5f);
var tup3 = ("This", "That", "The other thing");
Console.WriteLine($"Labeled tuple: ({tup1.a},{tup1.b})");
Console.WriteLine($"Default tuple: ({tup2.Item1},{tup2.Item2})");
Console.WriteLine($"Triple tuple: ({tup3.Item1},{tup3.Item2},{tup3.Item3})");
var result = plusTimes(tup1.a, tup1.b);
Console.WriteLine($"{tup1.a} + {tup1.b} = {result.Item1}");
Console.WriteLine($"{tup1.a} * {tup1.b} = {result.Item2}");