// 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 { private static int AddOne(int ini, int v) { return ini + v; } public static int AddThree(int acc, int v1, int v2, int v3) { return AddOne(AddOne(AddOne(acc, v1), v2), v3); } public static void Main(string[] args) { Console.WriteLine(AddThree(0, 123, 456, 789)); } } }