Anonymous Methods and Lamda Expressions
Teacher starts the discussion: Let’s go back to our delegate program (DelegateEx1). I have added few lines of code to that program to generate the same output. To help you to understand the differences among invocations, I have kept the old stuffs as it is.
Notice the additional stuff. These additional blocks of code can help you better understand anonymous methods and lambda expressions. Anonymous methods were introduced in C# 2.0 and lambda expressions were introduced in C# 3.0.
As the name suggests, a method without ...