Should I *always* favour implictly typed local variables in C# 3.0?

后端 未结 12 548
梦如初夏
梦如初夏 2020-12-09 15:48

Resharper certainly thinks so, and out of the box it will nag you to convert

Dooberry dooberry = new Dooberry();

to

var doo         


        
12条回答
  •  萌比男神i
    2020-12-09 15:59

    I'm seeing a pattern for stackoverflow success: dig up old CodingHorror posts and (Jeopardy style) phrase them in terms of a question.

    I plead innocent! But you're right, this seemed to be a relatively popular little question.

提交回复
热议问题