C#支持哪些转义序列?
以下是显示如何在C#中显示一些转义符的示例-
示例
using System; using System.Collections.Generic; class Demo { static void Main() { Console.WriteLine("Warning!" + '\u0007'); Console.WriteLine("Test \t Demo Text"); Console.WriteLine("This is it!\nThis is on the next line!"); } }
对于C#中的转义序列的完整列表-