What the heck is a lambda?
Lambdas? That’s a frat right? Why are they in C#? No no… it’s not a frat! Lambdas are simply a syntax that we use to define anonymous methods. What’s an anonymous method? It’s a method that has no declaration. What’s a method declaration? Jeez man… Method Anatomy
1 2 3 4 |
public void DoStuff(int input) { Console.WriteLine("The number is {0}", input); } |
That is …