Declaring a looooong single line string in C#

后端 未结 11 1003
礼貌的吻别
礼貌的吻别 2021-02-05 00:58

Is there a decent way to declare a long single line string in C#, such that it isn\'t impossible to declare and/or view the string in an editor?

The options I\'m aware o

11条回答
  •  挽巷
    挽巷 (楼主)
    2021-02-05 01:52

    I either just let it run, or use string.format and write the string in one line (the let it run method) but put each of the arguments in new line, which makes it either easier to read, or at least give the reader some idea what he can expect in the long string without reading it in detail.

提交回复
热议问题