(The code - posted here as images to demonstrate ReSharper’s code analysis - is also available on Github.) Anyone who uses ReSharper is familiar with the little squiggly line indicating a “warning” of one kind or another. And anyone who develops with .NET is familiar with the ubiquitous NullReferenceException
Took advantage of a nice feature in ReSharper 8 today. I wanted to grab the current DateTime and display the time only, in 12-hour format with seconds and AM/PM. But I don’t do it often and couldn’t remember the exact format off the top of my head.