In C#, what's the best way to spread a single-line string literal across multiple source lines?

前端 未结 7 1589
没有蜡笔的小新
没有蜡笔的小新 2020-12-30 18:19

Suppose that you have a lengthy string (> 80 characters) that you want to spread across multiple source lines, but don\'t want to include any newline characters.

One

7条回答
  •  挽巷
    挽巷 (楼主)
    2020-12-30 19:11

    When finding yourself in question on how to do multiline strings, you might be better of using a Resources file.

提交回复
热议问题