Here’s an interesting one:
Resharper wants to morph this:
var lc = new LoginCredentials();
lc.Username = "CesarChavez";
lc.Password = "CesarChavez";
…into this:
var lc = new LoginCredentials {Username = "CesarChavez", Password = "CesarChavez"};
…but with the latter, “lc” seems superfluous – it’s not referenced anywhere…???
It’s not used in your first code block either. It assumes (and rightfully so) that you’ll use
lcat some point, otherwise the entire block is pointless.