C# @“” how do i insert a tab?

后端 未结 12 1269
南笙
南笙 2021-01-17 08:02

Recently i found out i can write in a \" by writing two \" ex @\"abc\"\"def\". I find the @ string literal useful. But how do i write in a tab or n

12条回答
  •  遇见更好的自我
    2021-01-17 08:25

    Just write a tab or a newline in your string. @"" string literals recognise every character as it is written in the code file. On the contrary, escape sequences don't work.

提交回复
热议问题