Selecting a Specific Object with FirstOrDefault in LINQ

Giovanni Pace

Description

I'll explain how to use FirstOrDefault in LINQ to find a specific element in a C# collection, covering both the case when the element exists and when it isn't found.