这是一个有趣的:
Resharper 想要改变这个:
var lc = new LoginCredentials();
lc.Username = "CesarChavez";
lc.Password = "CesarChavez";
...进入这个:
var lc = new LoginCredentials {Username = "CesarChavez", Password = "CesarChavez"};
...但是对于后者,“lc”似乎是多余的-它没有在任何地方引用...???