C# Is this initialiser really redundant?

后端 未结 6 548
故里飘歌
故里飘歌 2021-01-15 14:40

I have the following line of code:

var dmrReceived = new DownloadMessagesReport();

StyleCop and ReSharper are suggesting I remove the redun

6条回答
  •  失恋的感觉
    2021-01-15 14:53

    Surely this is enough?

    DownloadMessagesReport dmrReceived = dc.DownloadNewMessages(param, param2, param3);
    

提交回复
热议问题