Linq By Example

Welcome

Stuck trying to understand the difference between First and FirstOrDefault? Or maybe First vs Single? Or maybe trying to work out why Count is less performant than a simple Any statement. You're at the right place!

Linq By Example is all about showing off the power of .NET/C# LINQ, with real world examples you can execute in your browser. Use the following links to navigate directly to the LINQ method you are struggling with.