class Factorial { static void Main() { //Lambada Expression Func<int,int> call = null; call = x => x * (x == 1 ? 1 : call(x - 1)); Console.WriteLine(call(5)); Console.ReadLine(); } }
This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)