static void Main(string[] args) { emptyDel empty = new emptyDel(opgave1); empty(); floatDel floaty = new floatDel(opgave2); Console.WriteLine(floaty()); fullDel fully = new fullDel(opgave3); fully("Grønne", 19, 185f); }
static void Main(string[] args) { SquareDel square = x => x * 2; Console.WriteLine(square(5)); FloatDel flud = (x, y, z) => x + y + z; Console.WriteLine(flud(9.1f, 19.4f, 7.4f)); emptyDel empty = () => "Hello world"; Console.WriteLine(empty()); }