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

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

    If you are starting to need "special" characters within your string then maybe you should be using a normal string "" and escaping them using \ rather than using the @"".

    What sort of data are you storing in the string? What reason do you have for needing it in a @""?

提交回复
热议问题