diff --git a/ApressCodesForInteractiveCSharp/PartII/Ch11_AnonymousMethod/Test1_FuncVsActionVsPredicate/Program.cs b/ApressCodesForInteractiveCSharp/PartII/Ch11_AnonymousMethod/Test1_FuncVsActionVsPredicate/Program.cs index ca3446b..8b553c7 100644 --- a/ApressCodesForInteractiveCSharp/PartII/Ch11_AnonymousMethod/Test1_FuncVsActionVsPredicate/Program.cs +++ b/ApressCodesForInteractiveCSharp/PartII/Ch11_AnonymousMethod/Test1_FuncVsActionVsPredicate/Program.cs @@ -10,19 +10,19 @@ static void Main(string[] args) //Func Console.WriteLine("<---Using Func--->"); Func student = new Func(ShowStudent); - Console.WriteLine(ShowStudent("Amit", 1)); - Console.WriteLine(ShowStudent("Sumit", 2)); + Console.WriteLine(student("Amit", 1)); + Console.WriteLine(student("Sumit", 2)); //Action Console.WriteLine("<---Using Action--->"); Action sum = new Action(SumOfThreeNumbers); - SumOfThreeNumbers(10, 3, 7); - SumOfThreeNumbers(5, 10, 15); + sum(10, 3, 7); + sum(5, 10, 15); //Predicate Console.WriteLine("<---Using Predicate--->"); Predicate isGreater = new Predicate(GreaterThan100); - Console.WriteLine("125 is greater than 100? {0}", GreaterThan100(125)); - Console.WriteLine("60 is greater than 100? {0}", GreaterThan100(60)); + Console.WriteLine("125 is greater than 100? {0}", isGreater(125)); + Console.WriteLine("60 is greater than 100? {0}", isGreater(60)); Console.ReadKey(); }