WTF Is a Lambda

added by DotNetKicks
1/30/2019 2:09:20 PM

1 Kicks, 578 Views

If you're just learning C# you've probably come across something like this and wondered what the weird x=>x is all about... things.SingleOrDefault(x=>x.Name == "Bob"); To understand what's going on, let's explore a specific example. Let's say you have a collection of People. Here's a class to represent a Person...