Tag: null-coalescing operator
Join Null Check with Assignment
I recently wrote some code and asked ReSharper to add a null check for me, which it did. Then it suggested that I could simplify the null check by joining it...
LINQ: FirstOrDefault without the null check afterwards.
So, I was considering a problem I had that called for a LINQ statement that contains a FirstOrDefault() call. If there was an object returned I wanted a string...
