Exercise: LINQ XOrDefault Methods
Use FirstOrDefault() with safe defaults.
We'll cover the following...
We'll cover the following...
NullReferenceException and FirstOrDefault()
Now, let’s practice preventing a NullReferenceException when working with LINQ XOrDefault ...