// Collection of code snippets by Arne Vajhøj // (likely posted to comp.os.vms/INFO-VAX, INFO-TPU, MACRO32, eksperten.dk, newz.dk, LinkedIn or other place sometime between 1990 and now) using System; namespace E { public class Program { public static void PrintAddress(Tuple adr) { Console.WriteLine(adr.Item1 + " bor " + adr.Item2 + " i " + adr.Item3); } public static void PrintQuestions(Tuple spm) { Console.WriteLine("Spm. 1 : " + spm.Item1); Console.WriteLine("Spm. 2 : " + spm.Item2); Console.WriteLine("Spm. 3 : " + spm.Item3); } public static void Main(string[] args) { Tuple adr = Tuple.Create("Anders Andersen", "A Vej 123", "A By"); Tuple spm = Tuple.Create("Hvad er 2+2?", "Hvad er 2-2?", "Hvad er 2*2?"); PrintAddress(spm); PrintQuestions(adr); } } }