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

后端 未结 12 1122
南笙
南笙 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:15

    Use '\\t' to escape the first backslash, then it will be interpreted as a tab. Sorry for the confusion...this site escaped the first slash...really when editing this there is three slashes....

提交回复
热议问题