A lambda expression is a method without a declaration – so no access modifier, no return value declaration and no name. Why should I use a lambda expressions ? 1. Reduces typing – I don’t need to specify the name…
A lambda expression is a method without a declaration – so no access modifier, no return value declaration and no name. Why should I use a lambda expressions ? 1. Reduces typing – I don’t need to specify the name…
C# Delegates – Why Delegates ? Why would you go to the trouble of creating a delegate when you could just call the method directly ? This question is often asked when delegates are first introduced. Consider the function static…