Local variables or direct statements?

前端 未结 7 1634
旧时难觅i
旧时难觅i 2021-01-25 23:55

I am currently studying C# and I really want to get a good coding style from the beginning, so I would like to hear opinions from you professionals on this matter.

Shoul

7条回答
  •  情书的邮戳
    2021-01-26 00:45

    There's no right option. Both are perfectly acceptable.

    Most people choose the first option if you don't have a lot of conditions to concatenate because it results in less lines of code.

提交回复
热议问题