With the advent of new features like lambda expressions (inline code), does it mean we dont have to use delegates or anonymous methods anymore? In almost all the samples I have seen, it is for rewriting using the new syntax.
Any place where we still have to use delegates and lambda expressions won't work?
Lamda's are just syntactic sugar for delegates, they are not just inline, you can do the following:
And delegates are still used when defining events, or when you have lots of arguments and want to actually strongly type the method being called.